pentest-distro-builder/filesystem/root/.vscode/extensions/ms-vscode.go-0.6.89/node_modules/array-find-index
2018-10-17 15:35:13 -06:00
..
index.js Parrot preseed changes 2018-10-17 15:35:13 -06:00
license Parrot preseed changes 2018-10-17 15:35:13 -06:00
package.json Parrot preseed changes 2018-10-17 15:35:13 -06:00
readme.md Parrot preseed changes 2018-10-17 15:35:13 -06:00

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