conventional-changelog-action/node_modules/array-find-index
Tycho Bokdam 999eba1f94
chore: Added node_modules to release branch
2019-10-18 11:54:08 +02:00
..
index.js chore: Added node_modules to release branch 2019-10-18 11:54:08 +02:00
license chore: Added node_modules to release branch 2019-10-18 11:54:08 +02:00
package.json chore: Added node_modules to release branch 2019-10-18 11:54:08 +02:00
readme.md chore: Added node_modules to release branch 2019-10-18 11:54:08 +02:00

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