g.js — graphical objects for JavaScript

totaltotal

Calculate the sum of a list of numbers.

g.total([2, 5, 10, 15]);

See Also

  • min: Take the smallest value from a list.
  • max: Take the largest value from a list.
  • average: Calculate the average of a list.