export default function createRowKey (rows: { [key: string]: any }[], keys: string[]) { for (const row of rows) { let newCol = '' for (let i = 0; i < keys.length; i++) { newCol += row[keys[i]] if (i < keys.length - 1) { newCol += '-' } } row.rowId = newCol } return rows }