xdash / union
Function: union()
union<
T
>(…arrs
):T
[]
Creates an array of unique values, in order, from all given arrays using SameValueZero for equality comparisons.
Type parameters
• T
Parameters
• …arrs: T
[][]
arrays to union
Returns
T
[]
the unioned array