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

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