Welshman Docs / @welshman/lib / intersection
Function: intersection() ​
intersection<
T>(a,b):T[]
Defined in: packages/lib/src/Tools.ts:445
Returns elements common to both arrays
Type Parameters ​
T ​
T
Parameters ​
a ​
T[]
First array
b ​
T[]
Second array
Returns ​
T[]
Array of elements present in both inputs