htc 7ca38fdcbb 善行少年PC端首次提交(基础版) преди 2 седмици
..
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) преди 2 седмици
license 7ca38fdcbb 善行少年PC端首次提交(基础版) преди 2 седмици
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) преди 2 седмици
readme.md 7ca38fdcbb 善行少年PC端首次提交(基础版) преди 2 седмици

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