PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
bower-config
/
node_modules
/
mout
/
array
var unique = require('./unique'); var filter = require('./filter'); var contains = require('./contains'); /** * Exclusive OR. Returns items that are present in a single array. * - like ptyhon's `symmetric_difference` */ function xor(arr1, arr2) { arr1 = unique(arr1); arr2 = unique(arr2); var a1 = filter(arr1, function(item){ return !contains(arr2, item); }), a2 = filter(arr2, function(item){ return !contains(arr1, item); }); return a1.concat(a2); } module.exports = xor;
[-] compact.js
[edit]
[-] find.js
[edit]
[-] equals.js
[edit]
[-] union.js
[edit]
[-] intersection.js
[edit]
[-] shuffle.js
[edit]
[-] reduce.js
[edit]
[-] max.js
[edit]
[+]
..
[-] collect.js
[edit]
[-] unique.js
[edit]
[-] combine.js
[edit]
[-] split.js
[edit]
[-] contains.js
[edit]
[-] forEach.js
[edit]
[-] some.js
[edit]
[-] pluck.js
[edit]
[-] insert.js
[edit]
[-] flatten.js
[edit]
[-] lastIndexOf.js
[edit]
[-] findLastIndex.js
[edit]
[-] take.js
[edit]
[-] append.js
[edit]
[-] removeAll.js
[edit]
[-] reduceRight.js
[edit]
[-] pick.js
[edit]
[-] min.js
[edit]
[-] groupBy.js
[edit]
[-] zip.js
[edit]
[-] toLookup.js
[edit]
[-] indexOf.js
[edit]
[-] findLast.js
[edit]
[-] slice.js
[edit]
[-] reject.js
[edit]
[-] range.js
[edit]
[-] remove.js
[edit]
[-] indicesOf.js
[edit]
[-] sortBy.js
[edit]
[-] last.js
[edit]
[-] sort.js
[edit]
[-] map.js
[edit]
[-] findIndex.js
[edit]
[-] reverse.js
[edit]
[-] join.js
[edit]
[-] filter.js
[edit]
[-] every.js
[edit]
[-] invoke.js
[edit]
[-] difference.js
[edit]
[-] xor.js
[edit]