MCPcopy Create free account
hub / github.com/zxlie/FeHelper / buildKeyValueRows

Function buildKeyValueRows

apps/json-format/table-utils.js:61–70  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

59}
60
61function buildKeyValueRows(obj) {
62 return {
63 mode: 'keyValue',
64 rows: Object.keys(obj).map((key, index) => ({
65 id: index,
66 key,
67 value: toCellValue(obj[key])
68 }))
69 };
70}
71
72export function buildTableViewData(input) {
73 const candidates = getArrayObjectCandidates(input);

Callers 1

buildTableViewDataFunction · 0.85

Calls 1

toCellValueFunction · 0.85

Tested by

no test coverage detected