{"_id":"array.prototype.findindex","_rev":"2882930","name":"array.prototype.findindex","description":"Array.prototype.findIndex ES2015 polyfill.","dist-tags":{"latest":"2.2.0"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"time":{"modified":"2022-10-06T07:34:34.000Z","created":"2013-12-20T15:24:54.726Z","2.2.0":"2022-04-12T22:28:34.645Z","2.1.1":"2022-04-10T03:06:32.665Z","2.1.0":"2020-02-24T21:13:44.800Z","2.0.2":"2017-03-30T19:45:06.037Z","2.0.1":"2017-03-30T01:22:30.615Z","2.0.0":"2016-01-31T23:20:05.574Z","1.0.0":"2014-08-14T05:52:45.310Z","0.1.1":"2014-03-24T22:04:26.596Z","0.1.0":"2013-12-20T15:24:54.726Z"},"users":{},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"versions":{"2.2.0":{"name":"array.prototype.findindex","version":"2.2.0","description":"Array.prototype.findIndex ES2015 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6","es2015"],"main":"index.js","scripts":{"prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","prelint":"es-shim-api --bound","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^21.0.0","aud":"^2.0.0","eslint":"=8.8.0","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.5.3"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.19.4","es-shim-unscopables":"^1.0.0"},"gitHead":"6da63aa8514592aa53e64c91d4f9da15db52adc0","homepage":"https://github.com/paulmillr/Array.prototype.findIndex#readme","_id":"array.prototype.findindex@2.2.0","_nodeVersion":"17.9.0","_npmVersion":"8.3.1","dist":{"shasum":"caf2dc7cd2581f8a8459a5d50b7068ccd0c2f4c5","size":5808,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-2.2.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.findindex_2.2.0_1649802514236_0.15383654670063973"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-12T22:28:38.775Z","publish_time":1649802514645,"_cnpm_publish_time":1649802514645},"2.1.1":{"name":"array.prototype.findindex","version":"2.1.1","description":"Array.prototype.findIndex ES2015 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6","es2015"],"main":"index.js","scripts":{"prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","prelint":"es-shim-api --bound","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"mocha test","test":"npm run tests-only","posttest":"aud --production"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^20.2.3","aud":"^2.0.0","chai":"^3.5.0","eslint":"=8.8.0","in-publish":"^2.0.1","mocha":"^2.4.5","safe-publish-latest":"^2.0.0"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.19.2"},"gitHead":"158653d36dbfcb66973bebebb65f764eccee1fc4","homepage":"https://github.com/paulmillr/Array.prototype.findIndex#readme","_id":"array.prototype.findindex@2.1.1","_nodeVersion":"17.9.0","_npmVersion":"8.3.1","dist":{"shasum":"20ff0d10ec35215111a5f774a2afa9539ce6447a","size":4977,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-2.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.findindex_2.1.1_1649559992477_0.7126558084185246"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-10T03:06:35.364Z","publish_time":1649559992665,"_cnpm_publish_time":1649559992665},"2.1.0":{"name":"array.prototype.findindex","version":"2.1.0","description":"Array.prototype.findIndex ES2015 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6","es2015"],"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","tests-only":"es-shim-api --bound && mocha test","test":"npm run tests-only","posttest":"npx aud --production"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^16.0.0","aud":"^1.0.0","chai":"^3.5.0","eslint":"^6.8.0","mocha":"^2.4.5"},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.4"},"gitHead":"b940f5f43c36c8d7a2ea1cec11bd08d893b3e940","homepage":"https://github.com/paulmillr/Array.prototype.findIndex#readme","_id":"array.prototype.findindex@2.1.0","_nodeVersion":"13.9.0","_npmVersion":"6.13.7","dist":{"shasum":"f43f8ed823274f0733647ee403b2c0c9771a97fe","size":4662,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-2.1.0.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.findindex_2.1.0_1582578824697_0.6572954938707041"},"_hasShrinkwrap":false,"publish_time":1582578824800,"_cnpm_publish_time":1582578824800,"_cnpmcore_publish_time":"2021-12-16T23:10:17.146Z"},"2.0.2":{"name":"array.prototype.findindex","version":"2.0.2","description":"Array.prototype.findIndex ES6 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6"],"main":"index.js","scripts":{"tests-only":"es-shim-api --bound && mocha test.js","test":"npm run tests-only"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"devDependencies":{"@es-shims/api":"^1.0.0","chai":"^3.5.0","mocha":"^2.4.5"},"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.5.0"},"gitHead":"5eb7fa9eff572a3335bd58afa2378c9a09ec0f32","homepage":"https://github.com/paulmillr/Array.prototype.findIndex#readme","_id":"array.prototype.findindex@2.0.2","_shasum":"58068d25887ef505e49dc92cb00c44dcee55b067","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"58068d25887ef505e49dc92cb00c44dcee55b067","size":4765,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-2.0.2.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/array.prototype.findindex-2.0.2.tgz_1490903105793_0.4751236892770976"},"directories":{},"publish_time":1490903106037,"_hasShrinkwrap":false,"_cnpm_publish_time":1490903106037,"_cnpmcore_publish_time":"2021-12-16T23:10:17.346Z"},"2.0.1":{"name":"array.prototype.findindex","version":"2.0.1","description":"Array.prototype.findIndex ES6 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6"],"main":"index.js","scripts":{"tests-only":"es-shim-api --bound && mocha test.js","test":"npm run tests-only"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"devDependencies":{"@es-shims/api":"^1.0.0","chai":"^3.5.0","mocha":"^2.4.5"},"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.5.0"},"gitHead":"923ff5220869476fc174aa1f73828f6b0ef5c98e","homepage":"https://github.com/paulmillr/Array.prototype.findIndex#readme","_id":"array.prototype.findindex@2.0.1","_shasum":"6976a293afe34af56a7f8cc221ad6e507f2b48f8","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"6976a293afe34af56a7f8cc221ad6e507f2b48f8","size":4726,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-2.0.1.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/array.prototype.findindex-2.0.1.tgz_1490836950373_0.8766359463334084"},"directories":{},"publish_time":1490836950615,"_hasShrinkwrap":false,"_cnpm_publish_time":1490836950615,"_cnpmcore_publish_time":"2021-12-16T23:10:17.837Z"},"2.0.0":{"name":"array.prototype.findindex","version":"2.0.0","description":"Array.prototype.findIndex ES6 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6"],"main":"index.js","scripts":{"test":"es-shim-api --bound && mocha test.js"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"devDependencies":{"@es-shims/api":"^1.0.0","chai":"^3.5.0","mocha":"^2.4.5"},"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.5.0"},"gitHead":"60163ec9a30eb864c981d7ca45ea3eff8cee93fe","homepage":"https://github.com/paulmillr/Array.prototype.findIndex#readme","_id":"array.prototype.findindex@2.0.0","_shasum":"559a21005a54049e9fb867b04fbb368013441668","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"559a21005a54049e9fb867b04fbb368013441668","size":3709,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-2.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"directories":{},"publish_time":1454282405574,"_hasShrinkwrap":false,"_cnpm_publish_time":1454282405574,"_cnpmcore_publish_time":"2021-12-16T23:10:18.027Z"},"1.0.0":{"name":"array.prototype.findindex","version":"1.0.0","description":"Array.prototype.findIndex ES6 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6"],"main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"devDependencies":{"chai":"~1.9.1","mocha":"~1.21.4"},"gitHead":"4e06493c7791d63c1fbb1ed4559cc05bc271ad47","homepage":"https://github.com/paulmillr/Array.prototype.findIndex","_id":"array.prototype.findindex@1.0.0","_shasum":"1966efa59f7cd281114d37ef542f51201e72b8fd","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"dist":{"shasum":"1966efa59f7cd281114d37ef542f51201e72b8fd","size":3082,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-1.0.0.tgz"},"directories":{},"publish_time":1407995565310,"_hasShrinkwrap":false,"_cnpm_publish_time":1407995565310,"_cnpmcore_publish_time":"2021-12-16T23:10:18.280Z"},"0.1.1":{"name":"array.prototype.findindex","version":"0.1.1","description":"Array.prototype.findIndex ES6 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"homepage":"https://github.com/paulmillr/Array.prototype.findIndex","_id":"array.prototype.findindex@0.1.1","dist":{"shasum":"0c122e171616cb33b7bfd8700f97420e4ce1bf56","size":2348,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"directories":{},"publish_time":1395698666596,"_hasShrinkwrap":false,"_cnpm_publish_time":1395698666596,"_cnpmcore_publish_time":"2021-12-16T23:10:18.501Z"},"0.1.0":{"name":"array.prototype.findindex","version":"0.1.0","description":"Array.prototype.findIndex ES6 polyfill.","keywords":["Array.prototype.findIndex","findIndex","es6"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/paulmillr/Array.prototype.findIndex.git"},"author":{"name":"Paul Miller","email":"http://paulmillr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"readmeFilename":"README.md","homepage":"https://github.com/paulmillr/Array.prototype.findIndex","_id":"array.prototype.findindex@0.1.0","dist":{"shasum":"c3700582637877e20cae2905054e3fa458c12fe4","size":2333,"noattachment":false,"key":"/array.prototype.findindex/-/array.prototype.findindex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array.prototype.findindex/download/array.prototype.findindex-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"maintainers":[{"name":"ljharb","email":""},{"name":"paulmillr","email":"paul@paulmillr.com"}],"directories":{},"publish_time":1387553094726,"_hasShrinkwrap":false,"_cnpm_publish_time":1387553094726,"_cnpmcore_publish_time":"2021-12-16T23:10:18.750Z"}},"readme":"# ES6 `Array.prototype.findIndex` polyfill\n\nSimple ES6 [Array.prototype.findIndex](http://people.mozilla.org/%7Ejorendorff/es6-draft.html#sec-array.prototype.findindex) polyfill for older environments taken from [es6-shim](https://github.com/paulmillr/es6-shim).\n\nFor browsers and node.js.\n\n## Installation\n* Just include repo before your scripts.\n* `npm install array.prototype.findindex` if you’re using node.js.\n* `component install paulmillr/Array.prototype.findIndex` if you’re using [component(1)](https://github.com/component/component).\n* `bower install Array.prototype.findIndex` if you’re using [Twitter Bower](http://bower.io).\n\n\n## Usage\n\n* `Array.prototype.findIndex(predicate[, thisArg])` returns first item index that matches `predicate` function.\n* `predicate(value, index, collection)`: takes three arguments\n    * `value`: current collection element\n    * `index`: current collection element index\n    * `collection`: the collection\n\n```javascript\nvar findIndex = require('array.prototype.findindex');\n\nfindIndex.shim(); // if you want to install it on the global environment\n```\n\nCode example:\n\n```javascript\n// Default:\n[1, 5, 10, 15].findIndex(function(a) {return a > 9;}) // 2\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Paul Miller <http://paulmillr.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/paulmillr/Array.prototype.findIndex#readme","bugs":{"url":"https://github.com/paulmillr/Array.prototype.findIndex/issues"},"license":"MIT"}