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