Skip to content

Welshman Docs / @welshman/lib / intersection

Function: intersection() ​

intersection<T>(a, b): T[]

Defined in: packages/lib/src/Tools.ts:383

Returns elements common to both arrays

Type Parameters ​

• T

Parameters ​

a ​

T[]

First array

b ​

T[]

Second array

Returns ​

T[]

Array of elements present in both inputs