christian 4571a14169 android fix | 3 gadus atpakaļ | |
---|---|---|
.. | ||
index.js | 3 gadus atpakaļ | |
license | 3 gadus atpakaļ | |
package.json | 3 gadus atpakaļ | |
readme.md | 3 gadus atpakaļ |
ES2015
Array#findIndex()
ponyfill
$ npm install --save array-find-index
const arrayFindIndex = require('array-find-index');
arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
//=> 1
Same as Array#findIndex()
, but with the input array as the first argument.
MIT © Sindre Sorhus