José Quiñones Flores 4564da0130 Added Laravel project and removed sensitive data | пре 4 година | |
---|---|---|
.. | ||
index.js | пре 4 година | |
license | пре 4 година | |
package.json | пре 4 година | |
readme.md | пре 4 година |
ES2015
Array#findIndex()
ponyfill
$ npm install --save array-find-index
const arrayFindIndex = require('array-find-index');
arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
//=> 1
Same as Array#findIndex()
, but with the input array as the first argument.
MIT © Sindre Sorhus