endsWith
endsWith()
Section titled “endsWith()”Category: String
Returns true if the input string ends with the specified suffix
Signature
Section titled “Signature”- Return type:
boolean - Parameters:
suffixstring— Suffix to check for
Examples
Section titled “Examples”Patient.name.family.endsWith('son')'Hello World'.endsWith('World')