Package Exports
- array-find-index
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (array-find-index) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
array-find-index 
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