Skip to content

Documentation / @ripl/utilities / arrayDifference

Function: arrayDifference() ​

arrayDifference<TLeft, TRight>(leftInput, rightInput, predicate?): TLeft[]

Defined in: collection.ts:160

Returns items from the left array that have no matching counterpart in the right array.

Type Parameters ​

Type ParameterDefault type
TLeft-
TRightTLeft

Parameters ​

ParameterType
leftInputTLeft[]
rightInputTRight[]
predicate?ArrayJoinPredicate<TLeft, TRight>

Returns ​

TLeft[]