Documentation / @ripl/utilities / arrayIntersection
Function: arrayIntersection()
arrayIntersection<
TLeft,TRight>(leftInput,rightInput,predicate?):TLeft[]
Defined in: packages/utilities/src/collection.ts:158
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[]