# ml-array-sum

> Get the average value in an array

Latest version **2.0.0** (published 2026-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install ml-array-sum
pnpm add ml-array-sum
yarn add ml-array-sum
bun add ml-array-sum
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-04-14 |
| First published | 2019-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Jefferson Hernández |
| Maintainers | stropitek, targos, lpatiny, mljs-bot |

## Links

- npm: https://www.npmjs.com/package/ml-array-sum
- Repository: https://github.com/mljs/array
- Homepage: https://github.com/mljs/array/tree/master/packages/array-sum#readme
- Issues: https://github.com/mljs/array/issues
- npm.io page: https://npm.io/package/ml-array-sum

## Dependencies (1)

- [is-any-array](https://npm.io/package/is-any-array.md) ^3.0.0

## Recent versions

- 2.0.0 (latest) — 2026-04-14
- 1.1.6 — 2022-01-21
- 1.1.5 — 2021-03-24
- 1.1.4 — 2020-10-07
- 1.1.3 — 2020-04-17
- 1.1.2 — 2019-08-30

## README

# array-sum

[![NPM version][npm-image]][npm-url]
[![npm download][download-image]][download-url]

Get the sum of the values in an array.

## Installation

`$ npm install --save ml-array-sum`

## Usage

```js
import sum from 'ml-array-sum';

const result = sum([1, 5, 3, 2, 4]);
// 15
```

## License

[MIT](./LICENSE)

[npm-image]: https://img.shields.io/npm/v/ml-array-sum.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ml-array-sum
[download-image]: https://img.shields.io/npm/dm/ml-array-sum.svg?style=flat-square
[download-url]: https://npmjs.org/package/ml-array-sum

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