startsWith(searchContainer, valueToFind)

Checks whether a string starts with a specific character or string or if an array starts with a specific value.

Type: function

Parameter(s):

  • searchContainer {String}:

    A string or an array to be checked

  • valueToFind {String}:

    The value to search for

Returns:

  • {Boolean}:

    Returns either true or false