function maxFromArray(array) { return array.reduce(function(a, b) { return Math.max(a, b); }, -Infinity); }