g.js — graphical objects for JavaScript

maxmax

Take the largest value from a list of numbers.

g.max([1, 4, -7, 3, 2]);

See Also

  • min: Take the smallest value from a list.
  • average: Calculate the average of a list.
  • total: Calculate the sum of all values in the list.