Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)