weekend project to make a simple web app using Typescript/Ionic/Angular.
Vincent Sima 1517fc9a2f done 6 anos atrás
..
index.js done 6 anos atrás
license done 6 anos atrás
package.json done 6 anos atrás
readme.md done 6 anos atrás

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