{"id":16487156,"url":"https://github.com/phalt/uniqueobj","last_synced_at":"2025-08-07T20:27:27.173Z","repository":{"id":57386372,"uuid":"239610349","full_name":"phalt/uniqueobj","owner":"phalt","description":"Remove duplicates from an array of objects","archived":false,"fork":false,"pushed_at":"2020-02-11T20:30:44.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T19:11:35.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/uniqueobj","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phalt.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":"2020-02-10T20:49:56.000Z","updated_at":"2020-02-11T20:30:46.000Z","dependencies_parsed_at":"2022-09-05T03:20:18.122Z","dependency_job_id":null,"html_url":"https://github.com/phalt/uniqueobj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Funiqueobj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Funiqueobj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Funiqueobj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Funiqueobj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phalt","download_url":"https://codeload.github.com/phalt/uniqueobj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241289173,"owners_count":19939028,"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-11T13:32:55.860Z","updated_at":"2025-03-01T00:28:20.539Z","avatar_url":"https://github.com/phalt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uniqueObj\n\nGiven an iterable of objects, return a unique list of the objects. You define how each object is identified with a callback.\n\n## Install\n\n```sh\nnpm install uniqueObj\n```\n\n## Usage\n\n### `uniqueObj([iterable,], callBack)`\n\nTakes an iterable of `Object`.\n\n`callBack` will be called against each item in the iterable to determine it's uniqueness. Here you can hash the object, or do any logic to determine the uniqueness of it.\n\n```js\nimport uniqueObj from 'uniqueObj';\n\n// just use the `id` value in each object to identify it\nuniqueResults = uniqueObj(allResults, (obj) =\u003e obj.id);\n\n// Do something a bit more complicated\nuniqueResults = uniqueObj(allResults, myComplicatedHashFunc);\n```\n\n## License\n\nGNU GPL V3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalt%2Funiqueobj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphalt%2Funiqueobj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalt%2Funiqueobj/lists"}