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

    • Optional length: number

    Returns boolean

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