totalled
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

totalled Travis CI Build Status

Get the sum of all the values in an array.

NPM Badge

Install

npm install totalled

Usage

const totalled = require("totalled");
 
totalled([1, 2, 3]);
//=> 6

API

totalled(array)

array

Type: array<number>

The array to sum.

/totalled/

    Package Sidebar

    Install

    npm i totalled

    Weekly Downloads

    61

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.74 kB

    Total Files

    5

    Last publish

    Collaborators

    • richienb