Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atlassubbed/atlas-sum
https://github.com/atlassubbed/atlas-sum
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/atlassubbed/atlas-sum
- Owner: atlassubbed
- License: other
- Created: 2018-07-15T01:47:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-15T03:31:15.000Z (over 6 years ago)
- Last Synced: 2024-12-05T18:48:03.721Z (about 1 month ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# atlas-sum
Calculate the sum of a set of data points.
[![Travis](https://img.shields.io/travis/atlassubbed/atlas-sum.svg)](https://travis-ci.org/atlassubbed/atlas-sum)
---
## install
```
npm install --save atlas-sum
```## why
Breaking up [atlas-dataset](https://github.com/atlassubbed/atlas-dataset#readme) into standalone functions. This module sums over an array of numbers:
## examples
```javascript
const sum = require("atlas-sum")
console.log(sum([1,2,3,4]))
// 10
```