Skip to main content

sum

The total of the elements; stays an integer when they all are

sum(arr: array) -> number

Arguments

NameType
arrarray

Example

{{ sum([10, 20, 30]) }}

Returns 60.