saveCsvFile = (path, jsonData) => {
  if (!path || !jsonData || Object.keys(jsonData).length === 0) {
    return;
  }
  saveAs(new Blob([unparse(jsonData)], {type: 'text/csv;charset=utf-8'}), path);
}
a utility function that exports an input json blob to a specified file path

@param {string} path: output file path
@param {object} jsonData: data in json format to be serialized