Skip to content

ListValue.sum method

ListValue › sum

Unofficial

Returns the sum of the list's numeric elements.

Signature:

sum(): Value

Returns: Value — A NumberValue, or NullValue when there are no numbers.