{"_id":"@abozhilov/set-utils","_rev":"3-b242de19cfecfe4234e697ee7f2b1a33","name":"@abozhilov/set-utils","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@abozhilov/set-utils","version":"1.0.0","description":"Set utility functions","type":"module","main":"dist/src/index.js","author":{"name":"Asen Bozhilov"},"license":"MIT","repository":{"type":"git","url":"https://github.com/abozhilov/set-utils"},"scripts":{"clean":"shx rm -rf dist","watch":"tsc --watch","docs":"typedoc --plugin typedoc-plugin-markdown --readme none --sort source-order --includeVersion","test":"mocha 'dist/test/**/*.js'","build":"yarn clean && tsc"},"devDependencies":{"@types/mocha":"^9.1.0","@types/node":"^17.0.13","mocha":"^9.2.0","shx":"^0.3.4","typedoc":"^0.22.11","typedoc-plugin-markdown":"^3.11.12","typescript":"^4.5.5"},"licenseText":"MIT License\n\nCopyright 2022, Asen Bozhilov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@abozhilov/set-utils@1.0.0","dist":{"shasum":"4d834eef12e0a42d2fbfe57c10b7c7031af7eced","integrity":"sha512-sQ0dtOSYdO9TPw8RY1v+nEvVXKbZqVtzd7JwhqymV7fDg1RK20so3pbvD2ZbyeZLXFxhaxTIEUl4zhrKPpAIbQ==","tarball":"https://registry.npmjs.org/@abozhilov/set-utils/-/set-utils-1.0.0.tgz","fileCount":47,"unpackedSize":41994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+miYCRA9TVsSAnZWagAAZqwQAIx93M5Bkyko6kZaMKtJ\nW+Hb7qHoDMiu7Oc8LbhPI6EKUxh9TO/xPP17mZ2tNhi5rmHmaN9DspR/dMYP\nQ4XFkX1TWvM/wjlhEAHxwNIHmDWFxXnffbzuURLNEgT+lIbtwMGZohVZ6KKQ\nIxdPdFQCJZ+MY2S/XIe7AgfCgwZVfBJBgISwiSQko7puzJq++ByZ+j/4xwOU\nHuFXuWkgZUMsP8TXabt7jnyl94dTbrDsiqbwNLsL8z51HuJGVYO4LfYJnFv+\nulrjaWtBx8OOgnp6zHv0a/Y73J4UReMKNnsAqusVOeimIjIpFeeOJINenMRg\nhzBGun0CpmdEhhO9wMelspxijJ8hX3qIxLDytHdcRz4qxR1whp0gniIN+3U8\nuf+RqmL6GN51GYtj3HOlZFVJuEkE2Kax3bfvEmwy84dfC9bi0hmZQ9vNGYAT\ndowMsQH5Jx8szYyyDyANJkwFK80hcOr5wDXqp9ZVcOtduRkApJlL/bKuJhat\nfqwO2KnPDlX/c3law7WnQadtZeE4qd3AZkKgaV7e1l34Fi4kApR65hzF6lrP\n4e0E03lkGKeH9A7Z7KiuOsSGxg7qOnPSy1HhACrclZI+18Ze81pkNnWOyVct\nhpMtnCBMD95VprKD4m873KV1tyRsm7oV7zFsKa9VDDncMv3ipflzWCqb0khC\nVa9S\r\n=RXlD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6vJUON6DCf20AbEpTtoyyj5DQm+HzkaROGIfs1c7D2AiEArUi04rszmGrTUcoW1P25s1j9oJyscL4Xh42f9jo7Vx0="}]},"_npmUser":{"name":"abozhilov-dev","email":"asen.bozhilov@gmail.com"},"directories":{},"maintainers":[{"name":"abozhilov-dev","email":"asen.bozhilov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-utils_1.0.0_1643800728077_0.891997018329667"},"_hasShrinkwrap":false},"1.1.0":{"name":"@abozhilov/set-utils","version":"1.1.0","description":"Set utility functions","type":"module","main":"dist/src/index.js","author":{"name":"Asen Bozhilov"},"license":"MIT","repository":{"type":"git","url":"https://github.com/abozhilov/set-utils"},"scripts":{"clean":"shx rm -rf dist","watch":"tsc --watch","docs":"typedoc --plugin typedoc-plugin-markdown --readme none --sort source-order --includeVersion","test":"mocha 'dist/test/**/*.js'","build":"yarn clean && tsc"},"devDependencies":{"@types/mocha":"^9.1.0","@types/node":"^17.0.13","mocha":"^9.2.0","shx":"^0.3.4","typedoc":"^0.22.11","typedoc-plugin-markdown":"^3.11.12","typescript":"^4.5.5"},"licenseText":"MIT License\n\nCopyright 2022, Asen Bozhilov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@abozhilov/set-utils@1.1.0","dist":{"shasum":"866d5b1f708f1e3cabab2529d8cec195eecf4c88","integrity":"sha512-I+vtmQibuTPEG/iiAZfHsupapwJO/9zKxVbD7oea4umvjk6ewkEAJQCwGNEoII4x6N1sbkIKCCtfKsUiIBw92Q==","tarball":"https://registry.npmjs.org/@abozhilov/set-utils/-/set-utils-1.1.0.tgz","fileCount":51,"unpackedSize":46390,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeioPoat4wIxIoFyD8b1UT0vfDSmEPu7goaXmVv9mRmgIgUi2LJ5g4Z4844rh5TK8pcIgXpGn2Wn6xA/gNMe7hUP8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbrO/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUsA//TcitwEnpFbn2Sw2aHS2wU140BGWsKaerHSNHreGgVMfFsi8d\r\ntKShcLvlHYSZNqR5kQM6hieRbYmC250UtspQvkj3jGM3vfnY+dO3Bg9WoPi8\r\n4uusjEVn+bQ2YoYIq4Tf3+wxM4Q+riqS8pHeTSBWGhENJAl2iLCKfsS5i4qp\r\nSiE/H9naHNR6qXltOAWsTKKXys9mrYDoJGGXidKawqm11LQQonWq1KpimI0f\r\nG79KIMisXbDvxh3pMUNL4ZSYfbpKaJrd9UUzxsogtaooQvJ0Mdx93bRmUiUm\r\nV52ENlFFsDYKgd2wDbKVBK7rIOyeXIYpGtMKBBRCDEHFXON/29hxFoqKBEhQ\r\nlm4lRUl2DmI2TY+p7c2tZJE7gIyR7w7eRO+jaxyBZWh2ImFv5PAfjuH81HDJ\r\nE7QqanGZiYWHy3n6ENZuaODG9AWzCWDeV9IRTsk7u3osumPB9jQ+Nrfqnp65\r\n/VylBvLCRR2cz85mmyLWpXsWYPwIOtAvUxMNS+IhmX0FweIZAAT2aNInOIuT\r\n01rLOnufJ0a5yLpMR8y0q9xVPWoVGo+p8jnMQGdd4ZlAGLhcJj55Vkvtv1YM\r\na4kLCqdDbwesUMPv1JrQsgi0jJZN+oJc6o6hSzMEaogGQ2M2uUn+5DMcw8pa\r\nv8Lg6bkqsvvM5WPfOJwjRFqvjmkqrInHTUA=\r\n=AgE9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"abozhilov-dev","email":"asen.bozhilov@gmail.com"},"directories":{},"maintainers":[{"name":"abozhilov-dev","email":"asen.bozhilov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-utils_1.1.0_1668199359027_0.06268303512015083"},"_hasShrinkwrap":false},"1.1.1":{"name":"@abozhilov/set-utils","version":"1.1.1","description":"Set utility functions","type":"module","main":"dist/src/index.js","author":{"name":"Asen Bozhilov"},"license":"MIT","repository":{"type":"git","url":"https://github.com/abozhilov/set-utils"},"scripts":{"clean":"shx rm -rf dist","watch":"tsc --watch","docs":"typedoc --plugin typedoc-plugin-markdown --readme none --sort source-order --includeVersion","test":"mocha 'dist/test/**/*.js'","build":"yarn clean && tsc"},"devDependencies":{"@types/mocha":"^9.1.0","@types/node":"^17.0.13","mocha":"^9.2.0","shx":"^0.3.4","typedoc":"^0.22.11","typedoc-plugin-markdown":"^3.11.12","typescript":"^4.5.5"},"licenseText":"MIT License\n\nCopyright 2022, Asen Bozhilov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@abozhilov/set-utils@1.1.1","dist":{"shasum":"d9725a04d321f09a3d94fea92a10e939fdc94327","integrity":"sha512-E+orlSbFbqiKToyPIGjkXFeBcDT/ARBesw4ng5t07k/TXCSNPgkJftrAcHB4MsUhSiY3QFTeMqYD8ixKKF7RKA==","tarball":"https://registry.npmjs.org/@abozhilov/set-utils/-/set-utils-1.1.1.tgz","fileCount":51,"unpackedSize":46237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdSisjb4vZCQc5gHzbf/WwX0HwaYKFH+kdSPiJ0FQXbgIhAOTc2J49T4/FwUvPic8DkvXi4Zap1g+YIOEzsqfwqRVt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjb8m/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpR5A//RaNIMh/WupACU4ll1EwrExWytN892WaIe/62dTym6EQu4jzK\r\nR8mWajLaWyZaILeixFXtvzCVFOszYmra5gD+1jc9fY4znkZ1lpD42pv2/FD9\r\nZlsduT9MEacl9TgXPwWcGE7me+EdVgRvDca3utjvVGrHMEE37nAFC2uNGL44\r\n6jFLxyiwioLRzkIssiWUFdy/J7MrA5md3wYLZn457kKvd5yHrOvZgJGrawo2\r\n2L/n/yptPIMzM9iFFZ7i1rw32rtaIposnA80uz74bRAGHOMZaIhP0/+uGmcs\r\nBJ2yld1awuFRFc74HAJ4bKeVUdUVAoMlM+I95Rg6ZrQPMIupEJV/zSDTHOno\r\nUAKLM3p2ffjSsIQBmFEpOctpHwU8r7bVL0abawlD/Sl/zXoqGoakvS1nDcqm\r\nemjg3AXiF93PaLc67822ZGlgYFQTZr5g75RLJcX0WUGo4huteL1IGcEPFGK1\r\nIC7ASvIXNjVLWTnGs9nPS3jIwAQwFzzy7RMwO/c4eKhY5wNH3XaVFbzu/XjM\r\ngy6h4/VOAALErOsCtc6ikMMad3JIGT7MRjJRpmyNffQCaXVcks+JwE560IOb\r\nzk/aN/7cWB/ZlrpJeNegXDbPZdZO8Z9VizszQRdtpliuVpbyVdu64nTjEQPm\r\n9GEoI744IrzM5Jg8IqWaR+Nib+3tIKOa3AY=\r\n=AKIJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"abozhilov-dev","email":"asen.bozhilov@gmail.com"},"directories":{},"maintainers":[{"name":"abozhilov-dev","email":"asen.bozhilov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-utils_1.1.1_1668270527478_0.4805176198039325"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-02T11:18:47.983Z","1.0.0":"2022-02-02T11:18:48.244Z","modified":"2022-11-12T16:28:47.728Z","1.1.0":"2022-11-11T20:42:39.187Z","1.1.1":"2022-11-12T16:28:47.618Z"},"maintainers":[{"name":"abozhilov-dev","email":"asen.bozhilov@gmail.com"}],"description":"Set utility functions","repository":{"type":"git","url":"https://github.com/abozhilov/set-utils"},"author":{"name":"Asen Bozhilov"},"license":"MIT","readme":"# @abozhilov/set-utils - v1.0.0\n\nUtility library for working with the built-in `Set`.\n\nWritten in TypeScript.\n\n## Installation\n\n### npm\n```\n    npm install @abozhilov/set-utils\n```\n\n### yarn\n```\n    yarn add @abozhilov/set-utils\n```\n## Table of contents\n\n### Functions\n\n- [isSubset](README.md#issubset)\n- [isStrictSubset](README.md#isstrictsubset)\n- [isSuperset](README.md#issuperset)\n- [isStrictSuperset](README.md#isstrictsuperset)\n- [isEqual](README.md#isequal)\n- [union](README.md#union)\n- [intersect](README.md#intersect)\n- [difference](README.md#difference)\n- [symmetricDifference](README.md#symmetricdifference)\n\n## Functions\n\n### isSubset\n\n▸ **isSubset**<`Т`\\>(`setA`, `setB`): `boolean`\n\nChecks whether `setA` is a subset of `setB`.\nThe operation is denoted by `setA ⊆ setB`.\n\n```ts\n  assert.equal(\n      isSubset(new Set([1, 2]), new Set([1, 2, 3])),\n      true\n  );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `Т` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`Т`\\> |\n| `setB` | `Set`<`Т`\\> |\n\n#### Returns\n\n`boolean`\n\n#### Defined in\n\n[index.ts:12](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L12)\n\n___\n\n### isStrictSubset\n\n▸ **isStrictSubset**<`Т`\\>(`setA`, `setB`): `boolean`\n\nChecks whether `setA` is a strict (proper) subset of `setB`.\nThe operation is denoted by `setA ⊂ setB`.\n\n```ts\n assert.equal(\n     isStrictSubset(new Set([1, 2]), new Set([1, 2, 3])),\n     true\n );\n```\n\n```ts\n assert.equal(\n     isStrictSubset(new Set([1, 2]), new Set([1, 2])),\n     false\n );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `Т` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`Т`\\> |\n| `setB` | `Set`<`Т`\\> |\n\n#### Returns\n\n`boolean`\n\n#### Defined in\n\n[index.ts:41](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L41)\n\n___\n\n### isSuperset\n\n▸ **isSuperset**<`T`\\>(`setA`, `setB`): `boolean`\n\nChecks whether `setA` is a superset of `setB`.\nThe operation is denoted by `setA ⊇ setB`.\n\n```ts\n  assert.equal(\n      isSuperset(new Set([1, 2, 3]), new Set([1, 2])),\n      true\n  );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `T` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`T`\\> |\n| `setB` | `Set`<`T`\\> |\n\n#### Returns\n\n`boolean`\n\n#### Defined in\n\n[index.ts:60](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L60)\n\n___\n\n### isStrictSuperset\n\n▸ **isStrictSuperset**<`T`\\>(`setA`, `setB`): `boolean`\n\nChecks whether `setA` is a strict (proper) superset of `setB`.\nThe operation is denoted by `setA ⊃ setB`.\n\n```ts\n assert.equal(\n     isStrictSuperset(new Set([1, 2, 3]), new Set([1, 2])),\n     true\n );\n```\n\n```ts\n assert.equal(\n     isStrictSuperset(new Set([1, 2]), new Set([1, 2])),\n     false\n );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `T` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`T`\\> |\n| `setB` | `Set`<`T`\\> |\n\n#### Returns\n\n`boolean`\n\n#### Defined in\n\n[index.ts:82](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L82)\n\n___\n\n### isEqual\n\n▸ **isEqual**<`T`\\>(`setA`, `setB`): `boolean`\n\nChecks whether `setA` is structurally equal to `setB`.\n\n```ts\n assert.equal(\n     isEqual(new Set([1, 2, 3]), new Set([2, 3, 1])),\n     true\n );\n```\n\n```ts\n assert.equal(\n     isEqual(new Set([1, 2, 3]), new Set([1, 2])),\n     false\n );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `T` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`T`\\> |\n| `setB` | `Set`<`T`\\> |\n\n#### Returns\n\n`boolean`\n\n#### Defined in\n\n[index.ts:103](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L103)\n\n___\n\n### union\n\n▸ **union**<`T`\\>(`setA`, `setB`, ...`restSets`): `Set`<`T`\\>\n\nReturns new set which contains all elements from each set.\nThe operation is denoted by `setA ⋃ setB`.\n\n```ts\n   assert.deepEqual(\n       union(new Set([1, 2]), new Set([3, 4])),\n       new Set([1, 2, 3, 4])\n   );\n```\n\n```ts\n   assert.deepEqual(\n       union(new Set([1, 2]), new Set([3, 4]), new Set([5, 6])),\n       new Set([1, 2, 3, 4, 5, 6])\n   );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `T` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`T`\\> |\n| `setB` | `Set`<`T`\\> |\n| `...restSets` | `Set`<`T`\\>[] |\n\n#### Returns\n\n`Set`<`T`\\>\n\n#### Defined in\n\n[index.ts:129](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L129)\n\n___\n\n### intersect\n\n▸ **intersect**<`T`\\>(`setA`, `setB`, ...`sets`): `Set`<`T`\\>\n\nReturns a new set with all elements of `setA` that also belongs to `setB`.\nThe operation is denoted by `setA ⋂ setB`.\n\n```ts\n   assert.deepEqual(\n       intersect(new Set([1, 2, 3]), new Set([2, 3, 4])),\n       new Set([2, 3])\n   );\n```\n\n```ts\n   assert.deepEqual(\n       intersect(new Set([1, 2, 3]), new Set([2, 3, 4]), new Set([2, 3, 5])),\n       new Set([2, 3])\n   );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `T` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`T`\\> |\n| `setB` | `Set`<`T`\\> |\n| `...sets` | `Set`<`T`\\>[] |\n\n#### Returns\n\n`Set`<`T`\\>\n\n#### Defined in\n\n[index.ts:163](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L163)\n\n___\n\n### difference\n\n▸ **difference**<`T`\\>(`setA`, `setB`, ...`sets`): `Set`<`T`\\>\n\nReturns a new set with all elements of `setA` that not belongs to `setB`.\nThe operation is denoted by `setA \\ setB`.\n\n```ts\n   assert.deepEqual(\n       difference(new Set([1, 2, 3]), new Set([3, 4, 5])),\n       new Set([1, 2])\n   );\n```\n\n```ts\n   assert.deepEqual(\n       difference(new Set([1, 2, 3, 4, 5]), new Set([3, 4]), new Set([4, 5])),\n       new Set([1, 2])\n   );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `T` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`T`\\> |\n| `setB` | `Set`<`T`\\> |\n| `...sets` | `Set`<`T`\\>[] |\n\n#### Returns\n\n`Set`<`T`\\>\n\n#### Defined in\n\n[index.ts:202](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L202)\n\n___\n\n### symmetricDifference\n\n▸ **symmetricDifference**<`T`\\>(`setA`, `setB`, ...`sets`): `Set`<`T`\\>\n\nReturns a new set with all elements of `setA` that not belongs to `setB` and vice versa.\nThe operation is denoted by `setA ∆ setB`.\n\n```ts\n   assert.deepEqual(\n       symmetricDifference(new Set([1, 2, 3]), new Set([3, 4, 5])),\n       new Set([1, 2, 4, 5])\n   );\n```\n\n```ts\n   assert.deepEqual(\n       symmetricDifference(new Set([1, 2, 3, 4]), new Set([3, 4, 5, 6]), new Set([4, 5, 7])),\n       new Set([1, 2, 6, 7])\n   );\n```\n\n#### Type parameters\n\n| Name |\n| :------ |\n| `T` |\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `setA` | `Set`<`T`\\> |\n| `setB` | `Set`<`T`\\> |\n| `...sets` | `Set`<`T`\\>[] |\n\n#### Returns\n\n`Set`<`T`\\>\n\n#### Defined in\n\n[index.ts:241](https://github.com/abozhilov/set-utils/blob/7f27c6d/ts/src/index.ts#L241)\n","readmeFilename":"README.md"}