sum function
sum(Number[] array)
The sum of the elements of the given array
Parameters
- Number[] array - the array to sum the elements of.
Return type
sum(Number[][] array, Integer axis)
Sums over an axis of the 2d array
Parameters
- Number[][] array - the 2d array to sum the elements of.
- Integer axis - the axis over which the array is summed: axis=0 for sum by column, axis=1 for sum by row. Defaults to axis=1 (row summation).