{"id":23053429,"url":"https://github.com/component/find","last_synced_at":"2025-10-30T17:36:19.501Z","repository":{"id":4867511,"uuid":"6022421","full_name":"component/find","owner":"component","description":"Return the first matching value in an array","archived":false,"fork":false,"pushed_at":"2015-04-06T21:27:40.000Z","size":107,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-08T20:13:18.203Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-30T21:18:01.000Z","updated_at":"2019-11-19T11:33:41.000Z","dependencies_parsed_at":"2022-08-30T09:11:30.117Z","dependency_job_id":null,"html_url":"https://github.com/component/find","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Ffind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Ffind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Ffind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Ffind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/find/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229890376,"owners_count":18140086,"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-12-16T00:18:10.924Z","updated_at":"2025-10-30T17:36:19.417Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# find\n\n  Find the first matching value in an array.\n\n## Installation\n\n    $ component install component/find\n\n## API\n\n### find(array, fn)\n\n  Find with a function:\n\n```js\nvar tobi = find(users, function(u){ return u.name == 'Tobi' });\n```\n\n### find(array, string)\n\n  Find with property strings:\n\n```js\nfind(users, 'admin');\n```\n\n### find(array, object)\n\n  Find with object value matching:\n\n```js\nvar users = [];\nusers.push({ name: 'Tobi', age: 2, species: 'ferret' });\nusers.push({ name: 'Jane', age: 6, species: 'ferret' });\nusers.push({ name: 'Luna', age: 2, species: 'cat' });\n\nfind(users, { name: 'Jane', age: 6 });\n// =\u003e { name: 'Jane', age: 6, species: 'ferret' }\n\nfind(users, { name: 'Jane', age: 1 });\n// =\u003e undefined\n```\n\n# License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Ffind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Ffind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Ffind/lists"}