vlad 6f123ff03e 18.07 6 anni fa
..
index.js 6f123ff03e 18.07 6 anni fa
license 6f123ff03e 18.07 6 anni fa
package.json 6f123ff03e 18.07 6 anni fa
readme.md 6f123ff03e 18.07 6 anni fa

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