src/utils/columnUtils.js
function getColumnPropertiesFromColumnArray(columnProperties, columns) {
  return columns.reduce((previous, current, i) => {
    previous[current] = { id: current, order: offset + i };
    return previous;
  },
  columnProperties);
}
function getColumnPropertiesFromColumnArray(columnProperties, columns) {
  return columns.reduce((previous, current, i) => {
    previous[current] = { id: current, order: offset + i };
    return previous;
  },
  columnProperties);
}
function getColumnPropertiesFromColumnArray ( columnProperties , columns ) { return columns . reduce ( ( previous , current , i ) => { previous [ current ] = { id : current , order : offset + i } ; return previous ; } , columnProperties ) ; }
Gets a column properties object from an array of columnNames
@param {Array<string>} columns - array of column names
Gets a column properties object from an array of columnNames