sum
Sums the elements in the given array
Arguments
array
- The array to sum selector(element, index)
- (optional) The selector to apply to each element before summing
Example
{
"$template": {
"$comment": "The field below will be 31",
"test": "{{[1, 2, 3, 5, 8, 10].sum(x => x)}}"
}
}