▸ includes(arr
: ArrayLike, element
: any, fromIndex?
: number): boolean
A non-spec compliant utility function to check if an Array includes something.
remarks
#
Parameters:Name | Type | Default value | Description |
---|---|---|---|
arr | ArrayLike | - | The array-like input to iterate through. |
element | any | - | The item to search for in the array. |
fromIndex | number | 0 | The index of the array to start searching from. |
Returns: boolean
boolean - true if the element was found in the array.
Defined in: unsafe/array/includes.ts:15