src/js/common/util.js
function(arr) {
        return {
            min: Math.min.apply(null, arr),
            max: Math.max.apply(null, arr)
        };
    }
function(arr) {
        return {
            min: Math.min.apply(null, arr),
            max: Math.max.apply(null, arr)
        };
    }
function ( arr ) { return { min : Math . min . apply ( null , arr ) , max : Math . max . apply ( null , arr ) } ; }
Returns the minimum value and the maximum value of the values in array.
@param {Array} arr - Target array
@returns {{min: number, max: number}} Min and Max
@see {@link http://jsperf.com/getminmax}
Returns the minimum value and the maximum value of the values in array .