jack e1a2621c78 update 2 gadi atpakaļ
..
index.js e1a2621c78 update 2 gadi atpakaļ
license e1a2621c78 update 2 gadi atpakaļ
package.json e1a2621c78 update 2 gadi atpakaļ
readme.md e1a2621c78 update 2 gadi atpakaļ

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