Skip to main content

Signature

path=null start=null
intersection<T>(arr1: T[], arr2: T[]): T[] | null

Type Parameters

  • T

Parameters

  • arr1: T[] - The first array.
  • arr2: T[] - The second array.

Returns

T[] | null - An array that contains the intersection of arr1 and arr2, or null if there is no intersection.

Source

Defined in array.ts:121