indexOf
indexOf()
Section titled “indexOf()”Category: String
Returns the zero-based index of the first 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'.indexOf('World')Patient.name.family.indexOf('Doe')