caoge c760052ff9 机车状态修改 8 달 전
..
index.js c760052ff9 机车状态修改 8 달 전
license c760052ff9 机车状态修改 8 달 전
package.json c760052ff9 机车状态修改 8 달 전
readme.md c760052ff9 机车状态修改 8 달 전

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