avg()

Finds the average of the number in an array.

This function is valid in v2.12.0 to v2.13.1. This function has been downloaded 15 times.

Parameter

{Array} array
Array of numbers for which to find the average.

Returns

{number}
The average of the numbers in array.

Required Function

This function requires the following function which is included automatically:

  • has()
    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.