• Returns the average of an of two or more numbers

    Example

    average(...[1, 2, 3]); // 2
    

    Example

    average(1, 2, 3); // 2
    

    Parameters

    • Rest ...nums: number[]

    Returns number

Generated using TypeDoc