src/util/index.js
function parseCSV(csvFilePath, attributeFields) {
  return new Promise((resolve, reject) => {
    try {
      csv(csvFilePath, data => resolve(_transformToHierarchy(data, attributeFields))); // lol hello Lisp
    } catch (err) {
      reject(err);
    }
  });
}
function parseCSV(csvFilePath, attributeFields) {
  return new Promise((resolve, reject) => {
    try {
      csv(csvFilePath, data => resolve(_transformToHierarchy(data, attributeFields))); // lol hello Lisp
    } catch (err) {
      reject(err);
    }
  });
}
parseCSV - Parses a CSV file into a hierarchy structure.

@param {string} csvFilePath     Path to CSV file to be parsed.
@param {array<string>|undefined} attributeFields Set of column names to be used as attributes (optional)

@return {Promise} Returns hierarchy array if resolved, error object if rejected.