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

    Parameters

    • str: string
    • what: string

    Returns number