summaryrefslogtreecommitdiff
path: root/docs/src/reference
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/reference')
-rw-r--r--docs/src/reference/types.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md
index f5f7e6e4..24756422 100644
--- a/docs/src/reference/types.md
+++ b/docs/src/reference/types.md
@@ -630,6 +630,20 @@ Folds all items into a single value using an accumulator function.
and one for an item.
- returns: any
+### sum()
+Sums all items (works for any types that can be added).
+
+- default: any (named)
+ If set and the array is empty, sum will return this.
+- returns: any
+
+### product()
+Calculates the product all items (works for any types that can be multiplied)
+
+- default: any (named)
+ If set and the array is empty, sum will return this.
+- returns: any
+
### any()
Whether the given function returns `{true}` for any item in the array.