{"_id":"array-find-index","_rev":"16952","name":"array-find-index","description":"ES2015 `Array#findIndex()` ponyfill","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T09:59:10.000Z","created":"2015-12-29T14:52:50.534Z","1.0.2":"2016-09-30T08:39:49.384Z","1.0.1":"2015-12-29T17:38:12.109Z","1.0.0":"2015-12-29T14:52:50.534Z"},"users":{"rocket0191":true,"timdp":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/array-find-index.git"},"versions":{"1.0.2":{"name":"array-find-index","version":"1.0.2","description":"ES2015 `Array#findIndex()` ponyfill","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/array-find-index.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["es2015","ponyfill","polyfill","shim","find","index","findindex","array"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"983f4c827ad22fa0353182b1ddcbfaecd4412859","bugs":{"url":"https://github.com/sindresorhus/array-find-index/issues"},"homepage":"https://github.com/sindresorhus/array-find-index#readme","_id":"array-find-index@1.0.2","_shasum":"df010aa1287e164bbda6f9723b0a96a1ec4187a1","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"df010aa1287e164bbda6f9723b0a96a1ec4187a1","size":1685,"noattachment":false,"key":"/array-find-index/-/array-find-index-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-find-index/download/array-find-index-1.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/array-find-index-1.0.2.tgz_1475224789159_0.7274378235451877"},"directories":{},"publish_time":1475224789384,"_cnpm_publish_time":1475224789384,"_hasShrinkwrap":false},"1.0.1":{"name":"array-find-index","version":"1.0.1","description":"ES2015 `Array#findIndex()` ponyfill","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/array-find-index"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["es6","es2015","ponyfill","polyfill","shim","find","index","findindex","array"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"0b2eea2c3e42aeb97be82b50f64a5672d2847036","bugs":{"url":"https://github.com/sindresorhus/array-find-index/issues"},"homepage":"https://github.com/sindresorhus/array-find-index","_id":"array-find-index@1.0.1","_shasum":"0bc25ddac941ec8a496ae258fd4ac188003ef3af","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0bc25ddac941ec8a496ae258fd4ac188003ef3af","size":1713,"noattachment":false,"key":"/array-find-index/-/array-find-index-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-find-index/download/array-find-index-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1451410692109,"_cnpm_publish_time":1451410692109,"_hasShrinkwrap":false},"1.0.0":{"name":"array-find-index","version":"1.0.0","description":"ES2015 `Array#findIndex()` ponyfill","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/array-find-index"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["es6","es2015","ponyfill","polyfill","shim","find","index","findindex","array"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"01afc1e66022f501ebf710fe7f4714a9a698446c","bugs":{"url":"https://github.com/sindresorhus/array-find-index/issues"},"homepage":"https://github.com/sindresorhus/array-find-index","_id":"array-find-index@1.0.0","_shasum":"31cf18a2e3e1371f290ea17e634bc58b79982cbb","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"31cf18a2e3e1371f290ea17e634bc58b79982cbb","size":1721,"noattachment":false,"key":"/array-find-index/-/array-find-index-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-find-index/download/array-find-index-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1451400770534,"_cnpm_publish_time":1451400770534,"_hasShrinkwrap":false}},"readme":"# array-find-index [![Build Status](https://travis-ci.org/sindresorhus/array-find-index.svg?branch=master)](https://travis-ci.org/sindresorhus/array-find-index)\n\n> ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) [ponyfill](https://ponyfill.com)\n\n\n## Install\n\n```\n$ npm install --save array-find-index\n```\n\n\n## Usage\n\n```js\nconst arrayFindIndex = require('array-find-index');\n\narrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');\n//=> 1\n```\n\n\n## API\n\nSame as `Array#findIndex()`, but with the input array as the first argument.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/array-find-index#readme","bugs":{"url":"https://github.com/sindresorhus/array-find-index/issues"},"license":"MIT"}