lib/sugar.js
/*
  This function receives an object, whose values will all be numbers, and returns the largest number in the object.
*/
This function receives an object, whose values will all be numbers, and returns the largest number in the object.
This function receives an object whose values will all be numbers and returns the largest number in the object .
function max(object) {
  const value = Object.values(object);
  return Math.max(...value);
}
function max ( object ) { const value = Object . values ( object ) ; return Math . max ( ... value ) ; }
This function receives an object, whose values will all be numbers, and returns the largest number in the object.
This function receives an object whose values will all be numbers and returns the largest number in the object .