{"_id":"unique-concat","_rev":"20-7b3ac1a0dc6acce1a7ba28be57b9598e","name":"unique-concat","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"unique-concat","version":"0.1.0","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi","tape":"testling -x open"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"homepage":"https://github.com/thlorenz/unique-concat","dependencies":{},"devDependencies":{"nave":"~0.4.3","tape":"~1.0.4","tap":"~0.4.3","testling":"~1.5.1"},"keywords":[],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/unique-concat/blob/master/LICENSE"},"engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## Note\n\nWorks only with types that can be properly hashed, which means that they need to have a sensible `.toString()` implementation\n\nTypes that work as expected: `int`, `string`\n\nTypes that work with caveats: `float` (if one float is part of the array, all numbers are converted to string)\n\nTypes that don't work: `object` since `obj.toString === '[ object ]'` for all objects.\n\nFor more information see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/unique-concat/issues"},"_id":"unique-concat@0.1.0","dist":{"shasum":"a349648972172859d869895d8b96a0b95b34a1ff","tarball":"https://registry.npmjs.org/unique-concat/-/unique-concat-0.1.0.tgz","integrity":"sha512-ZrjxQcFmiI3VSyk2w1rONPOaS/zUup036WYNL8O+txK7xM1CQU9ezYhGKmI5+tYQEHKV8zVMOVPjukla4U4/EA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQfGpsZLkwgwY4s3vXxH61sedo1u0Q3HxRA3e7c7kL/AiA9IOqdF4rchW/Do+9obtIUSdBHXVFKe7Fsj1ZufvhqdA=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.1.1":{"name":"unique-concat","version":"0.1.1","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi","tape":"testling -x open"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"homepage":"https://github.com/thlorenz/unique-concat","dependencies":{},"devDependencies":{"nave":"~0.4.3","tape":"~1.0.4","tap":"~0.4.3","testling":"~1.5.1"},"keywords":["concat","concatenate","Array","unique","duplicates","hash"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/unique-concat/blob/master/LICENSE"},"engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## Note\n\nWorks only with types that can be properly hashed, which means that they need to have a sensible `.toString()` implementation\n\nTypes that work as expected: `int`, `string`\n\nTypes that work with caveats: `float` (if one float is part of the array, all numbers are converted to string)\n\nTypes that don't work: `object` since `obj.toString === '[ object ]'` for all objects.\n\nFor more information see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/unique-concat/issues"},"_id":"unique-concat@0.1.1","dist":{"shasum":"e1587ac2bb4f27f4ca7485ba2eaefa8c61e68cfc","tarball":"https://registry.npmjs.org/unique-concat/-/unique-concat-0.1.1.tgz","integrity":"sha512-SKdOdxjxZv/RPNw3fZ+YW37Atl6lLRmUUzHvQBeQqmBum0A81Uc6GDsZggzUH6NS2JUeJEMb0yyeop5valREwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAefPIcoAq79lTTsbas7l7cV1sKKPpH5VdkVEy07PmaaAiB07GvTz6S4iFZdPYC8A8Pq7+gwYUOrkhtPF9sSnJvRSg=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.1.2":{"name":"unique-concat","version":"0.1.2","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi","tape":"testling -x open"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"homepage":"https://github.com/thlorenz/unique-concat","dependencies":{},"devDependencies":{"nave":"~0.4.3","tape":"~1.0.4","tap":"~0.4.3","testling":"~1.5.1"},"keywords":["concat","concatenate","Array","unique","duplicates","hash"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/unique-concat/blob/master/LICENSE"},"engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## Note\n\nWorks only with types that can be properly hashed, which means that they need to have a sensible `.toString()` implementation\n\nTypes that work as expected: `int`, `string`\n\nTypes that work with caveats: `float` (if one float is part of the array, all numbers are converted to string)\n\nTypes that don't work: `object` since `obj.toString === '[ object ]'` for all objects.\n\nFor more information see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/unique-concat/issues"},"_id":"unique-concat@0.1.2","dist":{"shasum":"0a8cb092e9e073bcec49df4e65085601eff2df40","tarball":"https://registry.npmjs.org/unique-concat/-/unique-concat-0.1.2.tgz","integrity":"sha512-32rqmiqxMcfRCndleghiSnu8dpfEcCmpnQ5CIaYxbpzMmOJQmWDScSWwK/DMuR72IwqQl2wJFzerkk+6ZNR2Ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArepc771YVxBZLWFi9thtPNg5JXvKZnsEqWR4AhkjnGAiAO53LtRsToAa7MI5xHmwPEULVrEQNONXsllcFtqgsYeQ=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.1.3":{"name":"unique-concat","version":"0.1.3","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi","tape":"testling -x open"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"homepage":"https://github.com/thlorenz/unique-concat","dependencies":{},"devDependencies":{"nave":"~0.4.3","tape":"~1.0.4","tap":"~0.4.3","testling":"~1.5.1"},"keywords":["concat","concatenate","Array","unique","duplicates","hash"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/unique-concat/blob/master/LICENSE"},"engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## Note\n\nWorks only with types that can be properly hashed, which means that they need to have a sensible `.toString()` implementation\n\nTypes that work as expected: `int`, `string`\n\nTypes that work with caveats: `float` (if one float is part of the array, all numbers are converted to string)\n\nTypes that don't work: `object` since `obj.toString === '[ object ]'` for all objects.\n\nFor more information see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/unique-concat/issues"},"_id":"unique-concat@0.1.3","dist":{"shasum":"7f592b5f136bc1f51f46186e9b4125c2cfde7f85","tarball":"https://registry.npmjs.org/unique-concat/-/unique-concat-0.1.3.tgz","integrity":"sha512-kaFxU/4eqDTjoDqv6Bz2R/AvCPhLBMUhZho74CyAZuT7PT7BJndJDUG9Ihq7WV/D4rvD/T/wnPrfMZo8RHUeJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6rO36Tm4DfRhBBaTtbdINZyf3nNK0Irnmd9k+hccdGQIgZOeZBsSx8QDpoquqGCBZPtddOPFHeHoA/a667JDmNbA="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.2.0":{"name":"unique-concat","version":"0.2.0","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi","tape":"testling -x open"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"homepage":"https://github.com/thlorenz/unique-concat","dependencies":{},"devDependencies":{"nave":"~0.4.3","tape":"~1.0.4","tap":"~0.4.3","testling":"~1.5.1"},"keywords":["concat","concatenate","Array","unique","duplicates","hash"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/unique-concat/blob/master/LICENSE"},"engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## API\n\n###*function uniqueConcat(arr1, arr2[, identity])*\n```\n/**\n * Concatenates two arrays, removing duplicates in the process and returns one array with unique values.\n * In case the elements in the array don't have a proper built in way to determine their identity,\n * a custom identity function must be provided.\n *\n * As an example, {Object}s all return '[ 'object' ]' when .toString()ed and therefore require a custom\n * identity function.\n *\n * @name exports\n * @function unique-concat\n * @param arr1 {Array} first batch of elements\n * @param arr2 {Array} second batch of elements\n * @param identity {Function} (optional) supply an alternative way to get an element's identity\n */\n```\n\n## Identity function example\n\n```js\nvar identity = function (obj) { return obj.a; }\nvar res = concat([{ a: 1 }, { a: 2, b: 1}], [{ a: 2, b: 2 }, { a: 3 }], identity);\nconsole.log(res);\n// => [ { a: 1 }, { a: 2, b: 2 }, { a: 3 } ]\n```\n\nFor more examples see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/unique-concat/issues"},"_id":"unique-concat@0.2.0","dist":{"shasum":"894726872b42b434860e78f6582cdc660b084d8e","tarball":"https://registry.npmjs.org/unique-concat/-/unique-concat-0.2.0.tgz","integrity":"sha512-hOayWnqrGiSm2lBebbrPJ+pMHF1Dzwb04pwN3G7py8Yla7TKPBWA5q/F/0NWZPilCmdj7dFguldJi7wOebOesQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClhQsFeMF24CgVB/RTi1CpQgy2WbWjLtvqiBUzBxSjfQIgZaFPpIc+FL8qv781bd5nTATny10WWkb8Ijnp9YUMeKo="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.2.1":{"name":"unique-concat","version":"0.2.1","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi","tape":"testling -x open"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"homepage":"https://github.com/thlorenz/unique-concat","dependencies":{},"devDependencies":{"nave":"~0.4.3","tape":"~1.0.4","tap":"~0.4.3","testling":"~1.5.1"},"keywords":["concat","concatenate","Array","unique","duplicates","hash"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/unique-concat/blob/master/LICENSE"},"engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## API\n\n###*function uniqueConcat(arr1, arr2[, identity])*\n```\n/**\n * Concatenates two arrays, removing duplicates in the process and returns one array with unique values.\n * In case the elements in the array don't have a proper built in way to determine their identity,\n * a custom identity function must be provided.\n *\n * As an example, {Object}s all return '[ 'object' ]' when .toString()ed and therefore require a custom\n * identity function.\n *\n * @name exports\n * @function unique-concat\n * @param arr1 {Array} first batch of elements\n * @param arr2 {Array} second batch of elements\n * @param identity {Function} (optional) supply an alternative way to get an element's identity\n */\n```\n\n## Identity function example\n\n```js\nvar identity = function (obj) { return obj.a; }\nvar res = concat([{ a: 1 }, { a: 2, b: 1}], [{ a: 2, b: 2 }, { a: 3 }], identity);\nconsole.log(res);\n// => [ { a: 1 }, { a: 2, b: 2 }, { a: 3 } ]\n```\n\nFor more examples see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/unique-concat/issues"},"_id":"unique-concat@0.2.1","dist":{"shasum":"856d66027b3110dfef6c4143654d7071bcc8854a","tarball":"https://registry.npmjs.org/unique-concat/-/unique-concat-0.2.1.tgz","integrity":"sha512-i9BL7zQAoCwf9Jvdfp5ET6HQKqc6stz5JtXRu3iMOENW43ROAejTV7b1TRTUxOAZrFMh/zcnlCJJm7M8GGsFuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsPAftNndsjZMwrRaG/AtxNgkETl1w32Ss3Q1/Xy6Y4AIhAJmkbVgOWhDPFflzK+r1iFVAY3Aw++D8u3RYmijSrOqi"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.2.2":{"name":"unique-concat","version":"0.2.2","description":"Concatenates two arrays, removing duplicates in the process and returns one array with unique values.","main":"index.js","scripts":{"test-main":"tap test/*.js","test-0.8":"nave use 0.8 npm run test-main","test-0.10":"nave use 0.10 npm run test-main","test-all":"npm run test-main && npm run test-0.8 && npm run test-0.10","test":"if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi","tape":"testling -x open"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"homepage":"https://github.com/thlorenz/unique-concat","dependencies":{},"devDependencies":{"nave":"~0.4.3","tape":"~1.0.4","tap":"~0.4.3","testling":"~1.5.1"},"keywords":["concat","concatenate","Array","unique","duplicates","hash"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":{"type":"MIT","url":"https://github.com/thlorenz/unique-concat/blob/master/LICENSE"},"engine":{"node":">=0.6"},"testling":{"files":"test/*.js","browsers":["ie/9..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/6.0.latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## API\n\n###*function uniqueConcat(arr1, arr2[, identity])*\n```\n/**\n * Concatenates two arrays, removing duplicates in the process and returns one array with unique values.\n * In case the elements in the array don't have a proper built in way to determine their identity,\n * a custom identity function must be provided.\n *\n * As an example, {Object}s all return '[ 'object' ]' when .toString()ed and therefore require a custom\n * identity function.\n *\n * @name exports\n * @function unique-concat\n * @param arr1 {Array} first batch of elements\n * @param arr2 {Array} second batch of elements\n * @param identity {Function} (optional) supply an alternative way to get an element's identity\n */\n```\n\n## Identity function example\n\n```js\nvar identity = function (obj) { return obj.a; }\nvar res = concat([{ a: 1 }, { a: 2, b: 1}], [{ a: 2, b: 2 }, { a: 3 }], identity);\nconsole.log(res);\n// => [ { a: 1 }, { a: 2, b: 2 }, { a: 3 } ]\n```\n\nFor more examples see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/unique-concat/issues"},"_id":"unique-concat@0.2.2","dist":{"shasum":"9210f9bdcaacc5e1e3929490d7c019df96f18712","tarball":"https://registry.npmjs.org/unique-concat/-/unique-concat-0.2.2.tgz","integrity":"sha512-nFT3frbsvTa9rrc71FJApPqXF8oIhVHbX3IWgObQi1mF7WrW48Ys70daL7o4evZUtmUf6Qn6WK0LbHhyO0hpXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFXdkATkIrxGDmfWTA8WnWtpprnH3mnTNOiONQI9YKBJAiB2LFTpkwigOVIPyZnY2gw9wF+LGJoX/gV/E21pnlN9zQ=="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]}},"readme":"# unique-concat [![build status](https://secure.travis-ci.org/thlorenz/unique-concat.png)](http://travis-ci.org/thlorenz/unique-concat)\n\n[![testling badge](https://ci.testling.com/thlorenz/unique-concat.png)](https://ci.testling.com/thlorenz/unique-concat)\n\nConcatenates two arrays, removing duplicates in the process and returns one array with unique values.\n\n```js\nvar concat = require('unique-concat');\nvar res = concat([ 1, 2, 3 ], [ 1, 2, 3, 4, 5, 6])\nconsole.log(res);\n// => [1, 2, 3, 4, 5, 6]\n```\n\n## Installation\n\n    npm install unique-concat\n\n## Note\n\nWorks only with types that can be properly hashed, which means that they need to have a sensible `.toString()` implementation\n\nTypes that work as expected: `int`, `string`\n\nTypes that work with caveats: `float` (if one float is part of the array, all numbers are converted to string)\n\nTypes that don't work: `object` since `obj.toString === '[ object ]'` for all objects.\n\nFor more information see [tests](https://github.com/thlorenz/unique-concat/blob/master/test/index.js)\n\n## License\n\nMIT\n","maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2022-06-28T04:40:53.240Z","created":"2013-07-28T13:53:34.230Z","0.1.0":"2013-07-28T13:53:35.497Z","0.1.1":"2013-07-28T13:59:43.873Z","0.1.2":"2013-07-28T14:03:36.405Z","0.1.3":"2013-07-28T14:12:27.298Z","0.2.0":"2013-07-28T15:18:45.647Z","0.2.1":"2013-07-28T15:29:09.175Z","0.2.2":"2013-07-28T15:33:48.369Z"},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/unique-concat.git"},"users":{"nickeltobias":true,"tobiasnickel":true}}