TypeScript String lastIndexOf()
Syntax & Examples
Syntax of String.lastIndexOf()
The syntax of String.lastIndexOf() method is:
lastIndexOf(searchString: string, position?: number): number
This lastIndexOf() method of String returns the last occurrence of a substring in the string.