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, cur) => acc + cur)) / array.length) : 0;
  }
  