{"id":16760256,"url":"https://github.com/ryanve/some-own","last_synced_at":"2025-08-12T15:14:05.369Z","repository":{"id":57366063,"uuid":"113694416","full_name":"ryanve/some-own","owner":"ryanve","description":"JavaScript someOwn function","archived":false,"fork":false,"pushed_at":"2018-10-22T01:34:13.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T08:02:05.444Z","etag":null,"topics":["javascript","opensource"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/some-own","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-09T19:11:15.000Z","updated_at":"2023-08-08T21:04:51.000Z","dependencies_parsed_at":"2022-08-23T20:10:35.135Z","dependency_job_id":null,"html_url":"https://github.com/ryanve/some-own","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ryanve/some-own","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fsome-own","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fsome-own/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fsome-own/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fsome-own/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanve","download_url":"https://codeload.github.com/ryanve/some-own/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanve%2Fsome-own/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269828485,"owners_count":24481731,"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-08-11T02:00:10.019Z","response_time":75,"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":["javascript","opensource"],"created_at":"2024-10-13T04:22:54.175Z","updated_at":"2025-08-12T15:14:05.346Z","avatar_url":"https://github.com/ryanve.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [`some-own`](https://www.npmjs.com/package/some-own)\nLike `[].some` but for objects.\n\n```\nnpm install some-own\n```\n\n```js\nconst someOwn = require(\"some-own\")\n```\n\n## API\n\n### `someOwn(object, callback, scope: undefined)`\n\n#### `@param`\n\n- `object` is the object to iterate\n- `callback` receives `(value, key, object)`\n- `scope` is the `this` context used to `.call` callback\n\n#### `@return boolean`\n\n- Breaks from the loop and returns `true` if any `callback` iteration result returns truthy\n- Else returns `false`\n\n\n## Usage\n\n```js\nconst someOwn = require(\"some-own\")\n```\n\n```js\nsomeOwn({x: 5, y: 0}, value =\u003e value \u003c 0) // false\nsomeOwn({x: -5, y: 0}, value =\u003e value \u003c 0) // true\nsomeOwn({x: 5, y: 0}, (value, key) =\u003e key.length === 1) // true\n```\n\n```js\nlet array = []\nsomeOwn({x: 5, y: 0}, value =\u003e array.push(value)) // true\narray.length // 1\n```\n\n```js\nlet array = []\nsomeOwn({x: 5, y: 0}, value =\u003e array.push(value) \u003e 10) // false\narray.length // 2\n```\n\n## BFF\n\n[`every-own`](https://www.npmjs.com/package/every-own)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fsome-own","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanve%2Fsome-own","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanve%2Fsome-own/lists"}