add-array

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i add-array

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      1.21 kB

      Total Files

      3

      Last publish

      Collaborators

      • yonas_tatek