• Search the first occurrence in a string, starting from a specified position (return the position of the result, from the beginning of the string, or -1 if not found)

    Parameters

    • str: string
    • what: string
    • pos: number

    Returns number