Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palashmon/array-add-num
Add up all the numbers in the array
https://github.com/palashmon/array-add-num
add array array-item number sum unit-test
Last synced: about 1 month ago
JSON representation
Add up all the numbers in the array
- Host: GitHub
- URL: https://github.com/palashmon/array-add-num
- Owner: palashmon
- License: mit
- Created: 2018-06-27T18:07:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T22:21:41.000Z (2 months ago)
- Last Synced: 2024-11-13T12:44:42.267Z (about 2 months ago)
- Topics: add, array, array-item, number, sum, unit-test
- Language: JavaScript
- Homepage:
- Size: 157 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# array-add-num ![CI](https://github.com/palashmon/array-add-num/actions/workflows/main.yml/badge.svg)
Add up all the numbers in the array
## Install
```
$ npm i array-add-num
```## Usage
```js
const arrayAdd = require('array-add-num');arrayAdd([1, 2, 3, 4]);
//=> 10
```## API
### arrayAdd(input)
#### input
Type: `Array`
Default: `[]`Must be a JavaScript Array object.
## License
MIT © [Palash Mondal](https://github.com/palashmon)