"use strict";

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

function translateRowArrayToObj(dataSource, columns) {
    return dataSource.map((item => columns.reduce(((pre, cur, index) => (pre[cur.field] = item[index], 
    pre)), {})));
}

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.translateRowArrayToObj = exports.translateRowObjToArray = void 0, exports.translateRowObjToArray = translateRowObjToArray, 
exports.translateRowArrayToObj = translateRowArrayToObj;
//# sourceMappingURL=translateRowObj.js.map