Bachir Soussi Chiadmi 0611418f7a added whole system from ola4doc %!s(int64=7) %!d(string=hai) anos
..
index.js 0611418f7a added whole system from ola4doc %!s(int64=7) %!d(string=hai) anos
license 0611418f7a added whole system from ola4doc %!s(int64=7) %!d(string=hai) anos
package.json 0611418f7a added whole system from ola4doc %!s(int64=7) %!d(string=hai) anos
readme.md 0611418f7a added whole system from ola4doc %!s(int64=7) %!d(string=hai) anos

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