UNPKG

tlojs

Version:

The Last One - The last npm package you'll need to install

19 lines (18 loc) 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableCell = void 0; var TableCell = /** @class */ (function () { function TableCell(key, value) { this.key = key; this.value = value; } TableCell.fromData = function (data) { var cellNames = Object.keys(data); return cellNames.map(function (x) { var val = data[x]; return new TableCell(x, val); }); }; return TableCell; }()); exports.TableCell = TableCell;