code: function stringify(jCal) {
      if (typeof jCal[0] == "string") {
        // This is a single component
        jCal = [jCal];
      }
  
      var i = 0;
      var len = jCal.length;
      var result = '';
  
      for (; i < len; i++) {
        result += stringify.component(jCal[i]) + LINE_ENDING;
      }
  
      return result;
    }
docs: Convert a full jCal/jCard array into a iCalendar/vCard string.
  
  @function ICAL.stringify
  @variation function
  @param {Array} jCal    The jCal/jCard document
  @return {String}       The stringified iCalendar/vCard document