Kevin 29b9a0c50c clean && clean html base 4 лет назад
..
index.js 29b9a0c50c clean && clean html base 4 лет назад
license 29b9a0c50c clean && clean html base 4 лет назад
package.json 29b9a0c50c clean && clean html base 4 лет назад
readme.md 29b9a0c50c clean && clean html base 4 лет назад

readme.md

array-find-index Build Status

ES2015 Array#findIndex() ponyfill

Install

$ npm install --save array-find-index

Usage

const arrayFindIndex = require('array-find-index');

arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
//=> 1

API

Same as Array#findIndex(), but with the input array as the first argument.

License

MIT © Sindre Sorhus