{"id":26560793,"url":"https://github.com/jlguenego/set","last_synced_at":"2025-08-19T08:36:20.852Z","repository":{"id":150325525,"uuid":"339488939","full_name":"jlguenego/set","owner":"jlguenego","description":"Javascript/Typescript - Operations on Set","archived":false,"fork":false,"pushed_at":"2021-03-01T08:17:30.000Z","size":1584,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T13:36:16.699Z","etag":null,"topics":["equality","include","intersection","set","union"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jlguenego.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2021-02-16T18:15:52.000Z","updated_at":"2021-03-01T08:17:32.000Z","dependencies_parsed_at":"2023-04-11T21:46:46.720Z","dependency_job_id":null,"html_url":"https://github.com/jlguenego/set","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jlguenego/set","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlguenego%2Fset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlguenego%2Fset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlguenego%2Fset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlguenego%2Fset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlguenego","download_url":"https://codeload.github.com/jlguenego/set/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlguenego%2Fset/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259712373,"owners_count":22900034,"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":["equality","include","intersection","set","union"],"created_at":"2025-03-22T13:29:59.717Z","updated_at":"2025-06-13T20:04:46.814Z","avatar_url":"https://github.com/jlguenego.png","language":"TypeScript","readme":"# Set\n\nSet utility in Javascript (and Typescript).\n\nSet are native in Javascript (since ES6). But the supported operations are limited. No union, intersection, include, etc.\nThis library tries to provide all missing basic functions.\n\nThis library covers the concept exposed in the 1972 book from Aho \u0026 Ullman, The Theory of Parsing, Translation, and Compiling.\n\n## Install\n\n```\nnpm i @jlguenego/set\n```\n\nThis library exposes both:\n\n- **ES2015** module that can be tree-shaked by Webpack for Angular etc.\n- **CommonJS** module for traditionnal node way.\n\nIt is ready to use for both browsers and node app.\n\n## Usage\n\n```ts\nconst a = new Set([1, 2, 3]);\nconst b = new Set([3, 4, 5]);\nconst c = Sets.union(a, b);\nconst d = new Set([1, 2, 3, 4, 5]);\nassert(Sets.areEquals(c, d));\nconst e = Sets.intersection(a, b);\nconst f = new Set([3]);\nassert(Sets.areEquals(e, f));\n// etc.\n```\n\n## API\n\n[See the typedoc documentation](./docs/api/modules.md)\n\n## Examples\n\n[See all examples in the test suite.](./test)\n\n## Participating\n\nDo not hesitate to bring your contribution to this project. Fork and Pull Request are welcome.\n\n## Bibliography\n\n- [Aho \u0026 Ullman, The Theory of Parsing, Translation, and Compiling](https://dl.acm.org/doi/book/10.5555/578789)\n\n## License\n\nISC\n\n## Author\n\nJean-Louis GUENEGO \u003cjlguenego@gmail.com\u003e\n\n```\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlguenego%2Fset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlguenego%2Fset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlguenego%2Fset/lists"}