Description

Compute the sum of the values in an array

Syntax

arraySum(array)

Parameters

Input ParameterTypeDescription
arrayArrayThe array to iterate over

Return value

Type
number

Sample

ExampleResultDescription
arraySum([4, 2, 8, 6])20Returns the sum of an array of elements

To view all the List functions, click here.

See Also

map