lastIndexOf
lastIndexOf()
Section titled “lastIndexOf()”Category: String
Returns the zero-based index of the last occurrence of the substring, or -1 if not found
Signature
Section titled “Signature”- Return type:
integer - Parameters:
substringstring— Substring to search for
Examples
Section titled “Examples”'Hello World World'.lastIndexOf('World')Patient.name.family.lastIndexOf('son')