Skip to content

xdash API Reference v0.5.14


xdash API Reference / intersection

Function: intersection() ​

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

Defined in: src/array.ts:113

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

Type Parameters ​

T ​

T

Parameters ​

arrs ​

...T[][]

arrays to intersect

Returns ​

T[]

the intersected array

Released under the MIT License.