ArraySum()
The sum of values in an array. If the array parameter value is an empty array, returns zero.
ArraySum( array=array );
Returns: Number
Examples
Sum of values in an array
numberArray = [10,99,27,72];
dump( arraySum(numberArray));
// member function
dump( numberArray.sum());
See also
- Arrays
- array.sum()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)