{"_id":"set-component","_rev":"2966259","name":"set-component","description":"Set container","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"npm:tjholowaychuk","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2023-05-08T06:32:13.000Z","created":"2012-09-17T16:44:37.850Z","1.0.0":"2012-11-07T21:40:06.570Z","0.0.4":"2012-10-17T16:37:59.994Z","0.0.3":"2012-09-19T04:01:17.658Z","0.0.2":"2012-09-19T02:10:06.283Z","0.0.1":"2012-09-17T16:44:37.850Z"},"users":{},"versions":{"1.0.0":{"name":"set-component","version":"1.0.0","description":"Set container","keywords":["set"],"component":{"scripts":{"set/index.js":"index.js"}},"readmeFilename":"Readme.md","_id":"set-component@1.0.0","dist":{"shasum":"252ca2c7239d9cce1d3cd5170c65ad471be75a09","size":3529,"noattachment":false,"key":"/set-component/-/set-component-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/set-component/download/set-component-1.0.0.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"npm:tjholowaychuk","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1352324406570,"_hasShrinkwrap":false,"_cnpm_publish_time":1352324406570,"_cnpmcore_publish_time":"2021-12-16T21:22:33.241Z"},"0.0.4":{"name":"set-component","version":"0.0.4","description":"Set container","keywords":["set"],"dependencies":{"indexof":"*"},"component":{"scripts":{"set/index.js":"index.js"}},"_id":"set-component@0.0.4","dist":{"shasum":"2a6a85e4bebaf3387895339dae34c7b338fd769c","size":5964,"noattachment":false,"key":"/set-component/-/set-component-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/set-component/download/set-component-0.0.4.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"npm:tjholowaychuk","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1350491879994,"_hasShrinkwrap":false,"_cnpm_publish_time":1350491879994,"_cnpmcore_publish_time":"2021-12-16T21:22:33.453Z"},"0.0.3":{"name":"set-component","version":"0.0.3","description":"Set container","keywords":["set"],"dependencies":{"indexof":"*"},"component":{"scripts":{"set/index.js":"index.js"}},"_id":"set-component@0.0.3","dist":{"shasum":"eb1a5f5e01bf204aa25cc965a862221f6e39bd95","size":3251,"noattachment":false,"key":"/set-component/-/set-component-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/set-component/download/set-component-0.0.3.tgz"},"maintainers":[{"name":"npm:tjholowaychuk","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1348027277658,"_hasShrinkwrap":false,"_cnpm_publish_time":1348027277658,"_cnpmcore_publish_time":"2021-12-16T21:22:33.682Z"},"0.0.2":{"name":"set-component","version":"0.0.2","description":"Set container","keywords":["set"],"dependencies":{"indexof":"*"},"component":{"scripts":{"set/index.js":"index.js"}},"_id":"set-component@0.0.2","dist":{"shasum":"39fd38f81d868973be822d946249a8779ca1ffad","size":3170,"noattachment":false,"key":"/set-component/-/set-component-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/set-component/download/set-component-0.0.2.tgz"},"maintainers":[{"name":"npm:tjholowaychuk","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1348020606283,"_hasShrinkwrap":false,"_cnpm_publish_time":1348020606283,"_cnpmcore_publish_time":"2021-12-16T21:22:33.888Z"},"0.0.1":{"name":"set-component","version":"0.0.1","description":"Set container","keywords":["set"],"dependencies":{"indexof":"*"},"component":{"scripts":{"set/index.js":"index.js"}},"_id":"set-component@0.0.1","dist":{"shasum":"5e47adbed15ef3290a1a3a49d6424a3bd9dd970b","size":3124,"noattachment":false,"key":"/set-component/-/set-component-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/set-component/download/set-component-0.0.1.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"npm:tjholowaychuk","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1347900277850,"_hasShrinkwrap":false,"_cnpm_publish_time":1347900277850,"_cnpmcore_publish_time":"2021-12-16T21:22:34.158Z"}},"readme":"\n# set\n\n  Generic Set container\n\n## Installation\n\n```\n$ component install component/set\n```\n\n## Example\n\n```js\nvar Set = require('set');\nvar set = new Set;\n\nset.add('foo');\nset.add('foo');\nset.add({ some: 'object' });\nset.remove('foo');\n\nset.values();\n// => [{ some: 'object' }]\n```\n\n## API\n\n### Set()\n\n  Create a new `Set`.\n\n### Set(values)\n\n  Create a new `Set` with `values` array. Duplicates will be removed.\n\n### Set#add(value)\n\n  Add `value` to the set.\n\n### Set#remove(value)\n\n  Remove `value` from the set, returning __true__ when present,\n  otherwise returning __false__.\n\n### Set#has(value)\n\n  Check if `value` is present.\n\n### Set#values()\n\n  Return an array of values.\n\n### Set#size()\n\n  Return the set size.\n\n### Set#empty()\n\n  Empty the set and return the old values array.\n\n### Set#union(set)\n\n  Perform a union with `set` and return a new `Set`.\n\n### Set#intersect(set)\n\n  Perform an intersection with `set` and return a new `Set`.\n\n## License \n\n  MIT","_attachments":{},"readmeFilename":"Readme.md"}