ArraySum

The sum of values in an array. If the array parameter value is an empty array, returns zero.

ArraySum( array )

Returns: Number

Argument Description
array
array, required

Name of an array

Examples

Sum of values in an array

numberArray = [10,99,27,72];
dump( arraySum(numberArray));
// member function
dump( numberArray.sum());

See also