indexOf method

indexOf(value)

Returns the zero-based index of the specified value in the collection.

indexOf(value: string)
ParameterTypeDescription
valuestringThe case-sensitive value to locate.

Returns

The zero based index. Negative value if not found.

See Also