indexOf Method

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

indexOf(value: T): number

Parameter Type Description
value T the value to find

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

Defined in

Last Updated: 08 January, 2020