tlojs
Version:
The Last One - The last npm package you'll need to install
21 lines (20 loc) • 603 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonExport = void 0;
var JsonExport = /** @class */ (function () {
function JsonExport() {
}
JsonExport.prototype.export = function (table) {
var results = table.rows.select(function (x) {
var o = {};
for (var _i = 0, _a = x.cells; _i < _a.length; _i++) {
var cell = _a[_i];
o[cell.key] = cell.value;
}
return o;
});
return results;
};
return JsonExport;
}());
exports.JsonExport = JsonExport;