function mapData()

in read_input/format.js [50:74]


function mapData(eztf, headers, values, range, resource) {
  const data = values
    .map((row) => {
      const obj = {};
      // row = row.map(str => String(str).trim());
      if (row.every((str) => !str)) {
        return {};
      }
      headers.forEach((header, index) => {
        obj[header] = row[index];
      });

      let newObj = mapGeneric(eztf.rangeNoteKey, range, obj);
      if (mapEntry[resource] && !!newObj && Object.keys(newObj).length > 0) {
        newObj = mapEntry[resource](newObj, eztf);
      }
      return newObj;
    })
    .filter((obj) => !!obj && Object.keys(obj).length > 0);
  // console.log(JSON.stringify(data,null,2));
  if (mapEntry[resource]) {
    console.log("Custom Map:", resource, range);
  }
  return data;
}