Returns unique items from an iterable or array of iterables.
const data = [ 'apples', 'oranges' ]const data2 = [ 'oranges', 'pears' ]const unique = [...unique([data,data2]];// Yields: [ 'apples', 'oranges', 'pears' ] Copy
const data = [ 'apples', 'oranges' ]const data2 = [ 'oranges', 'pears' ]const unique = [...unique([data,data2]];// Yields: [ 'apples', 'oranges', 'pears' ]
Uses object reference to compare values. Use uniqueByValue if this doesn't suffice.
Iterable, or array of iterables
Returns unique items from an iterable or array of iterables.
Uses object reference to compare values. Use uniqueByValue if this doesn't suffice.
Param: iterable
Iterable, or array of iterables