xdashReadme | API


xdash / intersection

Function: intersection()

intersection<T>(…arrs): T[]

Creates an array of unique values that are included in all given arrays using SameValueZero for equality comparisons.

Type parameters

T

Parameters

• …arrs: T[][]

arrays to intersect

Returns

T[]

the intersected array

Source

array.ts:74