{"id":16191074,"url":"https://github.com/maxmellon/array-set","last_synced_at":"2025-07-21T04:36:11.271Z","repository":{"id":86954167,"uuid":"303350913","full_name":"MaxMEllon/array-set","owner":"MaxMEllon","description":"create array as set from two arrays. like as intersection, union, and defference set.","archived":false,"fork":false,"pushed_at":"2020-10-12T10:04:34.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T14:43:25.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/MaxMEllon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-12T10:03:18.000Z","updated_at":"2023-03-10T09:00:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f61eb614-8068-4344-8716-db670d4ff328","html_url":"https://github.com/MaxMEllon/array-set","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaxMEllon/array-set","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Farray-set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Farray-set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Farray-set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Farray-set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxMEllon","download_url":"https://codeload.github.com/MaxMEllon/array-set/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Farray-set/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264730084,"owners_count":23655159,"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-10T07:44:59.525Z","updated_at":"2025-07-21T04:36:11.259Z","avatar_url":"https://github.com/MaxMEllon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# array-set\n\u003e create array as set from two arrays. like as intersection, union, and defference set.\n\n## Usage\n\n```js\nconst { intersection, union, difference } = require(\"array-set\");\n\nunion([3, 2, 3], [2, 3, 4]);\n// =\u003e [3, 2, 4]\nintersection([1, 2, 3], [3, 4, 5]);\n// =\u003e [3]\ndifference([1, 2, 3, 4], [1, 2]);\n// =\u003e [3, 4]\n```\n\n## API\n\n### intersection: `\u003cT extends string | numebr\u003e(a: T[], b: T[]): T[]`\n\n### union: `\u003cT extends string | numebr\u003e(a: T[], b: T[]): T[]`\n\n### difference: `\u003cT extends string | numebr\u003e(a: T[], b: T[]): T[]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Farray-set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmellon%2Farray-set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Farray-set/lists"}