(obj)
| 59 | } |
| 60 | |
| 61 | function 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 | |
| 72 | export function buildTableViewData(input) { |
| 73 | const candidates = getArrayObjectCandidates(input); |
no test coverage detected