Compute the union of two arrays
$ npm install @f/union
varunion=require('@f/union')union([1,2],[2,3,4])// -> [1, 2, 3, 4]a- First arrayb- Second arraycmp- Optional. Comparator to use to reduce the joined array to its unique values.
Returns: Returns the logical union of the two arrays. That is, each unique element in either array, exactly once.
MIT