Sign In

$arrayReduce[]

Reduces an array of elements and returns the result

v1.0.0+ Requires Brackets Experimental
Warning

This is an experimental function. It may not work as expected and is not guaranteed to be stable. Expect bugs, changes, or removal.

Usage

$arrayReduce[;;;;]

Arguments

NameTypeRequiredDescription
name
StringYesThe variable that holds the array
variable
StringYesThe variable to load the element value to
other variable
StringYesThe other variable to load the second element to
code
StringYesThe code to execute for every element, must return a number
default value
NumberNoThe default value, defaults to 0

Output

Number

Was this page helpful?