text: 
  exports.min = function min (array) {
  
    if(!array || array.length === 0) {
      return 0;
    }
    return array.sort((a, b) => a - b)[0];
    
  }
  
  exports.max = function max (array) {
    if(!array || array.length === 0) {
      return 0;
    }
    return array.sort((a, b) => b - a)[0];
  
  }
  
  exports.avg = function avg (array) {
    if(!array || array.length === 0) {
      return 0;
    }
    const num = array.reduce((sum = 0, elem) => sum + elem);
    return num / array.length;
  }
  