export function translateRowObjToArray(dataSource, columns) {
    return dataSource.map((item => columns.map((column => item[column.field]))));
}

export function translateRowArrayToObj(dataSource, columns) {
    return dataSource.map((item => columns.reduce(((pre, cur, index) => (pre[cur.field] = item[index], 
    pre)), {})));
}
//# sourceMappingURL=translateRowObj.js.map