// Additional array utility functions /** * Find the maximum value in the specified array * @param array * @returns {Object} max value */ Array.max = function( array ){ return Math.max.apply( Math, array ); }; /** * Find the minimum value in the specified array * @param array * @returns {Object} min value */ Array.min = function( array ){ return Math.min.apply( Math, array ); };