Skip to content

xdash API Reference v0.5.14


xdash API Reference / difference

Function: difference() ​

difference<T>(...values): T[]

Defined in: src/array.ts:135

Creates an array of unique values that are included in the first given array, but not in the remaining arrays using SameValueZero for equality comparisons.

Type Parameters ​

T ​

T

Parameters ​

values ​

...T[][]

arrays to exclude

Returns ​

T[]

the excluded array

Released under the MIT License.