Skip to main content

Signature

path=null start=null

Type Parameters

  • T

Parameters

  • arr: T[] - The array in which to find the element.
  • element: T - The element to find.

Returns

number - The index of the element in the array, or -1 if the element is not found.

Example

path=null start=null

Source

Defined in array.ts:53