Documentation / @ripl/utilities / arrayIntersection
Function: arrayIntersection() ​
arrayIntersection<
TLeft,TRight>(leftInput,rightInput,predicate?):TLeft[]
Defined in: collection.ts:155
Returns items from the left array that have a matching counterpart in the right array.
Type Parameters ​
| Type Parameter | Default type |
|---|---|
TLeft | - |
TRight | TLeft |
Parameters ​
| Parameter | Type |
|---|---|
leftInput | TLeft[] |
rightInput | TRight[] |
predicate? | ArrayJoinPredicate<TLeft, TRight> |
Returns ​
TLeft[]