method String.lastIndexOf
Private
String.lastIndexOf(
searchString: string,
position?: number,
): number

Returns the last occurrence of a substring in the string.

Parameters

searchString: string

The substring to search for.

optional
position: number

The index at which to begin searching. If omitted, the search begins at the end of the string.

Return Type

number