text: 
  exports.min = function min (array) {
      if (typeof array == "undefined" || array.length == 0) {
          return 0;
      }
      else {
          let min = array[0];
          array.forEach(element => {
              if (element <= min) {
                  min = element;
              }
          });
          return min;
      }
  }
  
  exports.max = function max (array) {
      if (typeof array == "undefined" || array.length == 0) {
          return 0;
      }
      else {
          let max = array[0];
          array.forEach(element => {
              if (element >= max) {
                  max = element;
              }
          });
          return max;
      }
  }
  
  exports.avg = function avg (array) {
      if (typeof array == "undefined" || array.length == 0) {
          return 0;
      }
      else {
          let average = 0; 
          let arraySize = array.length; 
          array.forEach(element => {
              average+=element;
          });
          return average/arraySize;
      }
  }
  