Calculates the sum of a list of numbers.
The sum of all the numbers in the array.
An error if the numbers parameter is not an array, or if it does not contain at least two numbers.
numbers
Rest
An array of numbers to sum up. Must contain at least two numbers.
Generated using TypeDoc
Calculates the sum of a list of numbers.
Returns
The sum of all the numbers in the array.
Throws
An error if the
numbers
parameter is not an array, or if it does not contain at least two numbers.