code: function baseFormat(data, strict) {
    const isArray = Array.isArray(data);
  
    if (!isArray && (data === null || typeof data !== 'object')) {
      throw new TypeError('data must be an Object or Array');
    }
  
    const records = [];
  
    if (isArray) {
      for (let i = 0, len = data.length; i < len; ++i) {
        records[i] = objectToRecord(data[i], strict);
      }
    } else {
      records.push(objectToRecord(data, strict));
    }
  
    return records.join('\n');
  }
docs: convert to LTSV string from object or array.
  
  @private
  @param {Object|Object[]} data
  @param {boolean} strict
  @returns {string}
  @throws {TypeError}