Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 504 Bytes

xor.md

File metadata and controls

32 lines (20 loc) · 504 Bytes

arrays.xor

xor(arrays)

Creates an array of unique values that is the symmetric difference of the given arrays

Arguments

  1. arrays (...Array): input arrays

Returns

(Array): an array of unique values

Example

const result = arrays.xor(['a', 1, [5]], ['b', 1, 'a'], ['b', 'c', 5]);
console.log(result);
> [[5], 'c', 5]