Function strStartsWith

This method lets you determine whether or not a string begins with another string. This method is case-sensitive.

  • Parameters

    • value: string

      The value to be checked

    • searchString: string

      The characters to be searched for at the start of the string

    • Optionalposition: number

      [Optional] The position in this string at which to begin searching for searchString. Defaults to 0

    Returns boolean

    true if the given characters are found at the beginning of the string; otherwise, false.