contains(searchContainer, valueToFind)

Checks wether a string contains a specific string or if an array contains a specific element.

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