{"id":20942267,"url":"https://github.com/vovkabelov/array.findindex","last_synced_at":"2025-07-24T19:12:38.819Z","repository":{"id":57184179,"uuid":"110735682","full_name":"vovkabelov/array.findIndex","owner":"vovkabelov","description":"Lightweight Array.prototype.findIndex Polyfill. ES5. IE9+","archived":false,"fork":false,"pushed_at":"2017-11-24T20:00:21.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T07:51:57.191Z","etag":null,"topics":["array","es5","findindex","ie9","javascript","polyfill"],"latest_commit_sha":null,"homepage":"https://vovkabelov.github.io/array.findIndex","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vovkabelov.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":"2017-11-14T19:34:30.000Z","updated_at":"2025-06-19T15:06:46.000Z","dependencies_parsed_at":"2022-08-23T01:31:09.611Z","dependency_job_id":null,"html_url":"https://github.com/vovkabelov/array.findIndex","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vovkabelov/array.findIndex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovkabelov%2Farray.findIndex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovkabelov%2Farray.findIndex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovkabelov%2Farray.findIndex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovkabelov%2Farray.findIndex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vovkabelov","download_url":"https://codeload.github.com/vovkabelov/array.findIndex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovkabelov%2Farray.findIndex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266890405,"owners_count":24001544,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["array","es5","findindex","ie9","javascript","polyfill"],"created_at":"2024-11-18T23:25:06.140Z","updated_at":"2025-07-24T19:12:38.800Z","avatar_url":"https://github.com/vovkabelov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lightweight Array.prototype.findIndex polyfill\n[![Build Status](https://travis-ci.org/vovkabelov/array.findIndex.svg?branch=master)](https://travis-ci.org/vovkabelov/array.findIndex)\n[![Coverage Status](https://coveralls.io/repos/github/vovkabelov/array.findIndex/badge.svg?branch=master\u0026service=Github)](https://coveralls.io/github/vovkabelov/array.findIndex?branch=master\u0026service=Github)\n[![Maintainability](https://api.codeclimate.com/v1/badges/5850f186343160e5f42c/maintainability)](https://codeclimate.com/github/vovkabelov/array.findIndex/maintainability)\n[![Size](https://badges.herokuapp.com/size/github/vovkabelov/array.findIndex/master/src/array-find-index-polyfill.js?gzip=true)](https://raw.githubusercontent.com/vovkabelov/array.findIndex/master/dist/array-find-index-polyfill.min.js)\n[![npm version](https://badge.fury.io/js/array.findindex.svg)](https://badge.fury.io/js/array.findindex)\n\nThe findIndex() method returns the index of the first element in the array \nthat satisfies the provided testing function. Otherwise -1 is returned.\n\n## How It Works\n**1.** Download [Latest version](https://github.com/vovkabelov/array.findIndex/archive/master.zip) or install with bower \n`bower install array.findindex`  \n**2.** Include polyfill on your web-page \n```html\n\u003cscript src=\"dist/array-find-index-polyfill.min.js\"\u003e\u003c/script\u003e\n```\n**3.** Use as native method\n```javascript\n[\"apple\", \"banana\", \"peach\"].findIndex(function(item) {\n    return item === \"banana\";\n});\n// 1\n```\n\n## Performance\nTesting in Chrome 61.0.3163 / Mac OS X 10.13.0  \n**Native** 431,077 Ops/sec   \n**Polyfill** 2,289,661 Ops/sec  \n\nSee [https://jsperf.com/array-prototype-find-index-polyfill](https://jsperf.com/array-prototype-find-index-polyfill)\n\n## Links\n[Specification](http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.findindex) on \"Ecma International\"  \n[MDN examples](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex)\n\n## Copyright and license\nCode and documentation copyright 2017 Vladimir Belov. Code released under the [MIT license](https://github.com/vovkabelov/array.find/blob/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovkabelov%2Farray.findindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvovkabelov%2Farray.findindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovkabelov%2Farray.findindex/lists"}