chuwanghui 6d115466a5 electron库 6 سال پیش
..
index.js 6d115466a5 electron库 6 سال پیش
license 6d115466a5 electron库 6 سال پیش
package.json 6d115466a5 electron库 6 سال پیش
readme.md 6d115466a5 electron库 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