avg()
Finds the average of the number in an array.
This function is valid in
v2.12.0 to v2.24.3.
This function has been downloaded 60 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 directly 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.