Skip to main content

Signature

path=null start=null
isSubset<T>(arr1: T[], arr2: T[]): boolean

Type Parameters

  • T - The type of the array elements.

Parameters

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

Returns

boolean - Returns true if every element in arr1 is included in arr2, otherwise returns false.

Source

Defined in array.ts:133