> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/function/sum.md).

# sum

> ⚠️ **This is not a builtin function.**

`sum()` is an **array method**, not a standalone function. See [Array aggregating methods](/methods/arrays/aggregating.md).

## Usage

```javascript
[10, 10, 5, 3, 5].sum()
// 33

[2, 5].sum()
// 7
```

Call `.sum()` on an array to find the total value of all the numbers in that array.
