Welshman Docs / @welshman/lib / union
Function: union() ​
union<
T
>(a
,b
):T
[]
Defined in: packages/lib/src/Tools.ts:375
Creates union of two arrays
Type Parameters ​
• T
Parameters ​
a ​
T
[]
First array
b ​
T
[]
Second array
Returns ​
T
[]
Array containing unique elements from both arrays