text: exports.min = function min(array) {
      if (array == undefined || array.length == 0) return 0;
      return Math.min(...array);
  }
  
  exports.max = function max(array) {
      if (array == undefined || array.length == 0) return 0;
      return Math.max(...array);
  }
  
  exports.avg = function avg(array) {
      if (array == undefined || array.length == 0) return 0;
      let total = 0;
      for (let i = 0; i < array.length; i += 1) {
          total += array[i];
      }
      let avg = total / array.length;
      return avg;
  }
  