text: 
  exports.min = function min (array) {
    if ((!array)||(array.length==0))
    return 0;
  else
   return Math.min.apply(null, array);
  }
  
  exports.max = function max (array) {
    if ((!array)||(array.length==0))
    return 0;
    else
    return Math.max.apply(null, array);
  }
  
  exports.avg = function avg (array) {
    if ((!array)||(array.length==0))
    return 0;
  else
  {
    var s=0;
  for (var i=0;i<array.length;i++)
  s=s+array[i];
  
  return s/array.length;
  }
  }
  