# useSum

Get the sum of an array reactively

**Package:** `@vueuse/math`
**Category:** '@Math'

## Usage

```ts
import { useSum } from '@vueuse/math'

const array = ref([1, 2, 3, 4])
const sum = useSum(array) // Ref<10>
```

## Reference

[VueUse Docs](https://vueuse.org/core/useSum/)
