indexOf Method

Finds the index of an element equivalent to the supplied value.

indexOf(value: T): number

@returns the index of an equivalent element in the map, or -1 if no such element exists.

Parameter Type Description
value T the value to find

Returns - number

the index of an equivalent element in the map, or -1 if no such element exists.

Defined in

Last Updated: 17 December, 2024