Back to documentation

Average

Returns the average number of the supplied array, or 0 if the array is empty.

Each array item supplied should preferably be a number or an array of numbers. But other types are supported and will be deeply reduced and coerced to numbers.

Information

Group: Math
Plan: Personal
Return type:
number

Parameters

ParameterTypeDefaultExpressions
Array
array<number>
[]
Yes