Skip to content

endsWith

Category: String

Returns true if the input string ends with the specified suffix

  • Return type: boolean
  • Parameters:
    • suffix string — Suffix to check for
Patient.name.family.endsWith('son')
'Hello World'.endsWith('World')