Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi 7 years ago
..
index.js cefd1c2ad0 updated sys and created publi 7 years ago
license cefd1c2ad0 updated sys and created publi 7 years ago
package.json cefd1c2ad0 updated sys and created publi 7 years ago
readme.md cefd1c2ad0 updated sys and created publi 7 years ago

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