JD2022-TU1/data/EngineData/Photoshop/photoshop.justdancetool/node_modules/array-find-index
2026-10-05 12:05:45 +03:00
..
index.js А это уже второй коммит (сам проект) 2026-10-05 12:05:45 +03:00
license А это уже второй коммит (сам проект) 2026-10-05 12:05:45 +03:00
package.json А это уже второй коммит (сам проект) 2026-10-05 12:05:45 +03:00
readme.md А это уже второй коммит (сам проект) 2026-10-05 12:05:45 +03:00

array-find-index Build Status

ES2015 Array#findIndex() ponyfill

Ponyfill: A polyfill that doesn't overwrite the native method

Install

$ npm install --save array-find-index

Usage

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