text: 
  exports.min = function min (array) {
      return array && array.length ? Math.min(...array) : 0;
  }
  
  exports.max = function max (array) {
  
    return array && array.length ? Math.max(...array) : 0;
  }
  
  exports.avg = function avg (array) {
      return array && array.length ? array.reduce((acc, elem) => acc+elem, 0)/array.length : 0;
  }
  