吕君喜 406d880ac6 first 3 anos atrás
..
index.js 406d880ac6 first 3 anos atrás
license 406d880ac6 first 3 anos atrás
package.json 406d880ac6 first 3 anos atrás
readme.md 406d880ac6 first 3 anos atrás

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