{"name":"uniq","version":"0.0.2","description":"Removes duplicates from a sorted array in place","main":"uniq.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tap":"~0.4.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/uniq.git"},"keywords":["array","duplicate","unique","uniq","remove","sort","in","place","no","copy"],"author":{"name":"Mikola Lysenko"},"license":"MIT","gitHead":"e9828cfcb97e25a351f95b39fdf3c31876ff3985","_id":"uniq@0.0.2","dist":{"shasum":"614e868ba288651d351262369317acc43b901823","tarball":"http://registry-npm.ywwl.com/uniq/download/uniq-0.0.2.tgz","integrity":"sha512-5FZ2X1SBajH/GNCRkBaMJOpa5y9aEyeS6fLnTTDP0b25RmsmG+11QRt5b0852RcJw6+rqqIYUq8XuAZJS3eHPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhW6ih75MqP8EZWiV4VsgPnluV5IoK28IDp0p2eqMDuAiEAuFQjAzwOOW+OFseLdq8d5kRJxLEviTjjj0CTeMKwa+I="}],"size":1645,"noattachment":false,"key":"/uniq/-/uniq-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"readme":"uniq\n====\nRemoves all duplicates from an array in place.\n\nUsage\n=====\nFirst install using npm:\n\n    npm install uniq\n    \nThen use it as follows:\n\n```javascript\n\nvar arr = [1, 1, 2, 2, 3, 5]\n\nrequire(\"uniq\")(arr)\nconsole.log(arr)\n\n//Prints:\n//\n//  1,2,3,5\n//\n```\n\n## `require(\"uniq\")(array[, compare, sorted])`\nRemoves all duplicates from a sorted array in place.\n\n* `array` is the array to remove items from\n* `compare` is an optional comparison function that returns 0 when two items are equal, and something non-zero when they are different.  If unspecified, then the default equals will be used.\n* `sorted` if true, then assume array is already sorted\n\n**Returns:** A reference to `array`\n\n**Time Complexity:** `O(array.length * log(arra.length))` or `O(array.length)` if `sorted`\n\n\n## Why use this instead of underscore.uniq[ue]?\nA few reasons:\n\n* This library updates the array in place without making an extra copy (and so it is faster for large arrays)\n* It also accepts a custom comparison function so you can remove duplicates from arrays containing object\n* It is more modular in the sense that it doesn't come with a bazillion other utility grab bag functions.\n\n# Credits\n(c) 2013 Mikola Lysenko. MIT License\n","publish_time":1364698354961,"_cnpm_publish_time":1364698354961,"dist-tags":{"latest":"1.0.1"}}