docs: function min(array) {
    var length = array.length;
  
    if (length === 0) {
      return 0;
    }
  
    var index = -1;
    var result = array[++index];
  
    while (++index < length) {
      if (array[index] < result) {
        result = array[index];
      }
    }
  
    return result;
  }