Back to Arrays
sum
Sum of all elements.
Syntax
sum(arr) → Total sum
Backends
TypeScript
Description
Sum of all elements.
Parameters
| Name | Description |
|---|---|
| arr | Input array |
Returns
Total sum
Sum of all elements.
sum(arr) → Total sum
Sum of all elements.
| Name | Description |
|---|---|
| arr | Input array |
Total sum