function data2Path(params, pathData) {
  return pathData.reduce(function (pathString, item) {
    let strData = '';
    if (item.args) {
      strData = cleanupOutData(roundData(item.args.slice()), params);
    }
    return pathString + item.command + strData;
  }, '');
}
Converts given path data to string.

@param {InternalParams} params
@param {ReadonlyArray<import('../lib/types.js').PathDataItem>} pathData
@returns {string}