• Returns whether the characters at the beginning of this string match the searchString, starting at position.

    Parameters

    • str: string
    • searchString: string

      The element to search for.

    • Optional position: number

      The position in this string at which to begin searching for searchElement.

    Returns boolean