text: exports.min = function min (array) {
    if(!array || array[0]==undefined) return 0;
     return array.sort((a,b)=>a-b)[0];
  }
  
  exports.max = function max (array) {
    if(!array || array[0]==undefined) return 0;
     return array.sort((a,b)=>b-a)[0];
  }
  
  exports.avg = function avg (array) {
    if(!array || array[0]==undefined) return 0;
    return array.reduce((num,el)=>num+=el)/array.length;
  }
  