add-array
v1.0.0
Published
> Combines a list of arrays, returning a sum of the numbers found.
Downloads
1
Readme
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