ArraySum

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

Returns: number

Usage

ArraySum( array )

Arguments

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