{"id":17050553,"url":"https://github.com/bendingbender/mdn-array.prototype.findindex","last_synced_at":"2025-03-23T04:42:00.362Z","repository":{"id":58223341,"uuid":"64828386","full_name":"BendingBender/MDN-Array.prototype.findIndex","owner":"BendingBender","description":"MDN version of Array.prototype.findIndex shim","archived":false,"fork":false,"pushed_at":"2017-05-11T19:42:41.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T17:49:57.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BendingBender.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-03T08:17:10.000Z","updated_at":"2016-08-03T13:45:29.000Z","dependencies_parsed_at":"2022-08-31T03:01:29.330Z","dependency_job_id":null,"html_url":"https://github.com/BendingBender/MDN-Array.prototype.findIndex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BendingBender%2FMDN-Array.prototype.findIndex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BendingBender%2FMDN-Array.prototype.findIndex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BendingBender%2FMDN-Array.prototype.findIndex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BendingBender%2FMDN-Array.prototype.findIndex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BendingBender","download_url":"https://codeload.github.com/BendingBender/MDN-Array.prototype.findIndex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245056903,"owners_count":20553854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T09:57:09.551Z","updated_at":"2025-03-23T04:42:00.334Z","avatar_url":"https://github.com/BendingBender.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![browser support](https://ci.testling.com/BendingBender/MDN-Array.prototype.findIndex.png)](https://ci.testling.com/BendingBender/MDN-Array.prototype.findIndex)\n\n[![Build Status](https://travis-ci.org/BendingBender/MDN-Array.prototype.findIndex.svg?branch=master)](https://travis-ci.org/BendingBender/MDN-Array.prototype.findIndex)\n\n# ES6 `Array.prototype.findIndex` shim\n\nSimple ES6 [Array.prototype.findIndex](https://tc39.github.io/ecma262/#sec-array.prototype.findindex) polyfill for older environments taken from [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex#Polyfill).\n\nFor browsers only, bower-friendly. Explicitly not meant to be used with node, use [Array.prototype.findIndex](https://github.com/paulmillr/Array.prototype.findIndex) if you wish a shim for node.\n\n## Installation\n* Just include repo before your scripts.\n* `bower install mdn-array.prototype.findindex`\n\n## Usage\n\n* `Array.prototype.findindex(predicate[, thisArg])` returns first item index that matches `predicate` function.\n\n#### Parameters\n\n* `predicate(value, index, collection)`: takes three arguments\n    * `value`: current collection element\n    * `index`: current collection element index\n    * `collection`: the collection\n* `thisArg`: Optional. Object to use as `this` when executing `predicate`.\n\n#### Code example\n\n```javascript\n[1, 5, 10, 15].findIndex(function(a) {return a \u003e 9;}) // 2\n```\n\n\n## Acknowledgements\n\nTests, readme and travis support gratefully taken from [Array.prototype.findIndex](https://github.com/paulmillr/Array.prototype.findIndex)\n\n## License\nCC0 1.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendingbender%2Fmdn-array.prototype.findindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendingbender%2Fmdn-array.prototype.findindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendingbender%2Fmdn-array.prototype.findindex/lists"}