Skip to main content

endsWith

Checks whether a string ends with another string.

endsWith(searchString, endingString)

Parameters#

  • searchString: The string to search within
  • endingString: The string with which searchString ends

Returns#

  • A boolean indicating the result.