# @kwsites/math-sum

> Gets the sum of values

Latest version **2.5.0** (published 2020-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kwsites/math-sum
pnpm add @kwsites/math-sum
yarn add @kwsites/math-sum
bun add @kwsites/math-sum
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2020-11-13 |
| First published | 2020-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve King |
| Maintainers | steveukx |
| Keywords | math, sum |

## Links

- npm: https://www.npmjs.com/package/@kwsites/math-sum
- Repository: https://github.com/kwsites/core
- Homepage: https://github.com/kwsites/core#readme
- Issues: https://github.com/kwsites/core/issues
- npm.io page: https://npm.io/package/@kwsites/math-sum

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 2.5.0 (latest) — 2020-11-13
- 2.4.0 — 2020-11-13
- 2.3.0 — 2020-11-13
- 2.2.0 — 2020-11-13
- 2.1.0 — 2020-11-03
- 1.0.1 — 2020-04-05
- 1.0.0 — 2020-02-01

## README

@kwsites/math-sum
===========

A lightweight library for summing numbers together. 


Usage
=====

Install using npm `npm install @kwsites/math-sum` or yarn  then use with require:

```typescript
import { sum } from '@kwsites/math-sum';

const numbers = [123, 456, 789];
const count = sum(numbers);

assert(count === 1368);
```

If the name `sum` clashes with your own variable naming, and you prefer not to alias in your imports,
you can use its alias `sumOf`;


```typescript
import { sumOf } from '@kwsites/math-sum';

const numbers = [123, 456, 789];
const sum = sumOf(numbers);

assert(sum === 1368);
```

---
_Source: https://npm.io/package/@kwsites/math-sum · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
