Skip to content

Add up all the numbers in the array

License

Notifications You must be signed in to change notification settings

palashmon/array-add-num

Repository files navigation

array-add-num CI

Add up all the numbers in the array

Install

$ npm i array-add-num

Usage

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