Eric Foster 35b96bc934 initial commit 6 年之前
..
index.js initial commit 6 年之前
license initial commit 6 年之前
package.json initial commit 6 年之前
readme.md initial commit 6 年之前

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