JSPM

totalled

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 51
  • Score
    100M100P100Q81466F
  • License MIT

Get the sum of all the values in an array.

Package Exports

  • totalled

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (totalled) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.