JSPM

atlas-sum

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q32668F
  • License Apache-2.0

Calculate the sum of a set of data points.

Package Exports

  • atlas-sum

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 (atlas-sum) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

atlas-sum

Calculate the sum of a set of data points.

Travis


install

npm install --save atlas-sum

why

Breaking up atlas-dataset into standalone functions. This module sums over an array of numbers:

sum(V) = sum[i=1 -> |V|](v_i)

examples

const sum = require("atlas-sum")
console.log(sum([1,2,3,4]))
// 10