endsWith(searchContainer, valueToFind)

Checks whether a string ends with a specific character or string or if an array ends with a specific element.

Type: function

Parameter(s):

  • searchContainer {String}:

    A string or array to be checked

  • valueToFind {String}:

    The value to search for

Returns:

  • {Boolean}:

    Returns either true or false