{"id":22021555,"url":"https://github.com/lamansky/unique-object","last_synced_at":"2026-04-09T23:02:49.740Z","repository":{"id":57386318,"uuid":"114898181","full_name":"lamansky/unique-object","owner":"lamansky","description":"[Node.js] Returns a copy of an Object or Map with duplicate values removed.","archived":false,"fork":false,"pushed_at":"2017-12-20T15:16:46.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T02:36:39.961Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lamansky.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-20T14:45:49.000Z","updated_at":"2017-12-20T15:16:47.000Z","dependencies_parsed_at":"2022-09-02T01:10:52.203Z","dependency_job_id":null,"html_url":"https://github.com/lamansky/unique-object","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/lamansky%2Funique-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Funique-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Funique-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Funique-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamansky","download_url":"https://codeload.github.com/lamansky/unique-object/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245085034,"owners_count":20558324,"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-11-30T06:12:54.956Z","updated_at":"2026-04-09T23:02:49.643Z","avatar_url":"https://github.com/lamansky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unique-object\n\nReturns a copy of an Object or Map with duplicate values removed.\n\nThis module is an alias of [`unique-map`](https://github.com/lamansky/unique-map), which supports both Maps and Objects.\n\n## Installation\n\n```bash\nnpm install unique-object --save\n```\n\n## Usage Example\n\n```javascript\nconst uniqueObject = require('unique-object')\n\nconst obj = {\n  1: 'A',\n  2: 'A',\n  3: 'B',\n}\n\nconst u = uniqueObject(obj)\nu[1] // 'A'\nu[2] // undefined\nu[3] // 'B'\n```\n\nFor more details, see the documentation for the [`unique-map`](https://github.com/lamansky/unique-map) module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Funique-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamansky%2Funique-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Funique-object/lists"}