1.0.0 • Published 2 years ago

add-array v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

add-array

Combines a list of arrays, returning a sum of the numbers found.

Install

Install with npm:

$ npm i add-array --save

Usage

var add-array = require('add-array');

add-array(['8'], ['b', '10'], ['9', 'e', '1']);
//=> 29

Returns only sum of number it ignore other data type like string :

add-array(['10', 'a'], ['b', '2']);
//=> 12