{"_id":"unordered-set","_rev":"8-81d3bd29e2d1f8ea4ba8817270e35bfc","name":"unordered-set","description":"A couple of functions that make it easy to maintain an unordered set as an array in an efficient way","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"unordered-set","version":"1.0.0","description":"A couple of functions that make it easy to maintain an unordered set as an array in an efficient way","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.4","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/unordered-set.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/unordered-set/issues"},"homepage":"https://github.com/mafintosh/unordered-set","gitHead":"43ce26ba9047754ad84316552f663d1f6e5181b1","_id":"unordered-set@1.0.0","_shasum":"cd274b3728584162429803345491acda2727185e","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cd274b3728584162429803345491acda2727185e","tarball":"https://registry.npmjs.org/unordered-set/-/unordered-set-1.0.0.tgz","integrity":"sha512-zMcJoX/ham/X2qG3rcXIpKgDEcXpemc/tRD6FW2aZNOJawfXsM5Q49bdY0OYo5EuFlGk7j3y874pe1PK4Lauhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwVRaUvIVDza3qIbBhdYNqP3ow3cj7HZbowRW5XX2YlAIhAI1ERSpn/2CIfplXaK9D7jf7SqTXztlyXOl5GTgb0thq"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/unordered-set-1.0.0.tgz_1454950442013_0.709912576014176"},"directories":{}},"1.0.1":{"name":"unordered-set","version":"1.0.1","description":"A couple of functions that make it easy to maintain an unordered set as an array in an efficient way","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.4","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/unordered-set.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/unordered-set/issues"},"homepage":"https://github.com/mafintosh/unordered-set","gitHead":"15ff2890b25c85a5b551573a4952195195cc97ce","_id":"unordered-set@1.0.1","_shasum":"a5dab43059e68e2a212818d3c9cad625b4b7e632","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"a5dab43059e68e2a212818d3c9cad625b4b7e632","tarball":"https://registry.npmjs.org/unordered-set/-/unordered-set-1.0.1.tgz","integrity":"sha512-D0UydrbKPoxozojSZp9weYuYqBx4kySRfMCqbxqwca/4QVWul4iRZvHKlPUXEYXu46KmvC8NwvpKHa2IU4Skzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvpS8QXrfefy43UOuEqSTRV8o5lcl2tdG1JO40T3FbrAiAqIFWxG2fLZScKpsAKiFUKOVhGDqxXB82V7hnOW0WqZQ=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/unordered-set-1.0.1.tgz_1454950712703_0.13522293069399893"},"directories":{}},"1.1.0":{"name":"unordered-set","version":"1.1.0","description":"A couple of functions that make it easy to maintain an unordered set as an array in an efficient way","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.4","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/unordered-set.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/unordered-set/issues"},"homepage":"https://github.com/mafintosh/unordered-set","gitHead":"97787688aba10779b6989a4c5115d709bed658ae","_id":"unordered-set@1.1.0","_shasum":"2ba7ef316edd0b9590cc547c74f76a2f164fecca","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"2ba7ef316edd0b9590cc547c74f76a2f164fecca","tarball":"https://registry.npmjs.org/unordered-set/-/unordered-set-1.1.0.tgz","integrity":"sha512-aArpq5fmiUKwcEYHvmCW+75dTqMP/G0SQhQpN3r2Q9P99tlQWhj6sTPO8AvyavQNbBB2cIpExCigFRi0or0ioQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID+PROfdvrF/tGj4Vvq3cBUHXSxb9iN3EcPpWSdZfb87AiATA1BGhQJPFYxEqWMrczGf0XJJV1RimAYbvMtqiAM4XQ=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/unordered-set-1.1.0.tgz_1454954768514_0.567512724082917"},"directories":{}},"2.0.0":{"name":"unordered-set","version":"2.0.0","description":"A couple of functions that make it easy to maintain an unordered set as an array in an efficient way","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.4","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/unordered-set.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/unordered-set/issues"},"homepage":"https://github.com/mafintosh/unordered-set","gitHead":"542bc9e6489722ab290ca5b9f9f78363ff43c1e2","_id":"unordered-set@2.0.0","_shasum":"985a27e975baa20b8263aea7a791e9300941a9ec","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"985a27e975baa20b8263aea7a791e9300941a9ec","tarball":"https://registry.npmjs.org/unordered-set/-/unordered-set-2.0.0.tgz","integrity":"sha512-XrLWvusDmaO08Hfe5Oxm8R/k7jTactwACHV8+iDpjJ/3zdTbS4kSLNHhv0Ct+eASP9Hv/F89KUHev2pkcEgcNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgo1kT1WSy+48QY5C+8Cvq0hmdOtM7YXNqWWGW7+noqQIhAKKnQ5DMN1oT4y0kOW6tSNQ9PCLIxQeLYMAvD+I2yDFf"}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unordered-set-2.0.0.tgz_1467310917369_0.06565805524587631"},"directories":{}},"2.0.1":{"name":"unordered-set","version":"2.0.1","description":"A couple of functions that make it easy to maintain an unordered set as an array in an efficient way","main":"index.js","dependencies":{},"devDependencies":{"standard":"^6.0.4","tape":"^4.4.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/unordered-set.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/unordered-set/issues"},"homepage":"https://github.com/mafintosh/unordered-set","gitHead":"aacee8d298750a52e928d8477a43a97d0fd6d97f","_id":"unordered-set@2.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-eUmNTPzdx+q/WvOHW0bgGYLWvWHNT3PTKEQLg0MAQhc0AHASHVHoP/9YytYd4RBVariqno/mEUhVZN98CmD7bg==","shasum":"4cd0fe27b8814bcf5d6073e5f0966ec7a50841e6","tarball":"https://registry.npmjs.org/unordered-set/-/unordered-set-2.0.1.tgz","fileCount":6,"unpackedSize":5726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHk8HCRA9TVsSAnZWagAAEfsP/1Pgrm23HZXrvlnHC4Cf\np9EBoa8R/J7Pb4dvXmYKcNFvKmhTKvGsoTHA8K4Pbf0sq4Y7B6pe+r/xcz3D\n55RVxrixlo2uKY+1Ir+Bf4HKiuC28R6VmEhdn4rDUqE5FScltKo8QmPbPise\nHGlYa3Ll68IeAxCRiP5kiUXy2tHURSsUJZsMheRBhTDXAMLcwdcvJ9/gSf+M\nLUJKOcDSqtIXpeEIB1mxY7Xg8/MbId4N5LoxRnp3+u9bt9xB176r2zHXZ2oT\n/WjHxFRg7KjXLByBmXlM3nw/PvkOs8rCobm1JLEj6D4Dy3iP5Sscfz/U4vFn\nTnePRFT1Q54Rp/Yi84WiIvAuYddWyxsiuTItYw+w5uBXYupkS8dhszyTyrmx\nTmFzt5IKWig4V+GkJt0vyvcX/bFBDwYm/lKuA/bAahg6xOtuKqxztPe6ujhS\nqu1nFywfKqsEh+nf3qNHB4K8ZlakC+tze7ABVD05MNvb5XKui5jNktos/dYd\nl9LQwDav7OuedD4t57v0E97dNsbyXmEEEQ+VhZ7OfDr75yD0TJDgbCWrbQqI\nNqidfleV52XoN7MCcxalEtLHq1Ks1WiHMWXy5qe9wj1HpYb22U1iohvWrP9s\ned2CkZHmbZwF6gX7SoroNRxn8KA9TYnwqHpbGd06rrB8YjrNnsCJjAaL0jD0\nid2h\r\n=DAZO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCmhNigeZ9XkGarstkXnYp5eqEVCaq/7hd7VJyZbWqhAiAhFv8F6dGvxnm7aSB0Pz2DJV2CCKk+ceC7O8JE3n28lw=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unordered-set_2.0.1_1528712967195_0.8074148081063268"},"_hasShrinkwrap":false}},"readme":"# unordered-set\n\nA couple of functions that make it easy to maintain an unordered set as an array in an efficient way\n\n```\nnpm install unordered-set\n```\n\n[![build status](https://travis-ci.org/mafintosh/unordered-set.svg?branch=master)](https://travis-ci.org/mafintosh/unordered-set)\n\n## Usage\n\n``` js\nvar set = require('unordered-set')\nvar list = []\n\nvar a = {hello: 'world'}\nvar b = {hej: 'verden'}\n\nset.add(list, a)\nset.add(list, b)\n\nconsole.log(list) // prints a and b\n\nset.remove(list, a)\n\nconsole.log(list) // prints b\n```\n\nItems are removed and added using the same technique as in [unordered-array-remove](https://github.com/mafintosh/unordered-array-remove)\nmaking the removal/additions run in O(1).\n\n## API\n\n#### `set.add(list, item)`\n\nAdd an item. Notes that this sets the property `._index` to a number. If you control the items you insert and this is performance critical it might be benefitial to set `item._index = 0` in the item constructor as v8 tends to like that.\n\n#### `set.remove(list, item)`\n\nRemove an item from the set. Might change the order of the list as well.\n\n#### `bool = set.has(list, item)`\n\nReturns `true` if the item is in the list and `false` otherwise\n\n#### `set.swap(list, a, b)`\n\nSwap the positions of two elements in the set\n\n## License\n\nMIT\n","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-28T05:12:56.947Z","created":"2016-02-08T16:54:04.821Z","1.0.0":"2016-02-08T16:54:04.821Z","1.0.1":"2016-02-08T16:58:35.482Z","1.1.0":"2016-02-08T18:06:11.529Z","2.0.0":"2016-06-30T18:21:59.749Z","2.0.1":"2018-06-11T10:29:27.256Z"},"homepage":"https://github.com/mafintosh/unordered-set","repository":{"type":"git","url":"git+https://github.com/mafintosh/unordered-set.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"bugs":{"url":"https://github.com/mafintosh/unordered-set/issues"},"license":"MIT","readmeFilename":"README.md"}