• Returns random element of the array

    Parameters

    • arr: any[]

    Returns any