Check if the text ends with specific characters (search). search can be a text or a regular expression.

Beispiele

  • endsWith("super", /e./)true
  • endsWith("SupeR", /er/i)true
  • endsWith("Super", "er")true
  • endsWith("Super", "up)false