String.indexOf

Number indexOf (String searchValue, Number offset)

Parameters

searchValue The string for which to search.
offset The starting offset of the search.

Description

Returns the index within the string of the first occurrence of the specified string, starting the search at fromIndex if provided.