Bachir Soussi Chiadmi ac58a24f5c added bower, gulp vor 7 Jahren
..
index.js ac58a24f5c added bower, gulp vor 7 Jahren
license ac58a24f5c added bower, gulp vor 7 Jahren
package.json ac58a24f5c added bower, gulp vor 7 Jahren
readme.md ac58a24f5c added bower, gulp vor 7 Jahren

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