Skip to content

startsWith

Category: String

Returns true if the input string starts with the specified prefix

  • Return type: boolean
  • Parameters:
    • prefix string — Prefix to check for
Patient.name.family.startsWith('Mc')
'Hello World'.startsWith('Hello')