(value)
| 3 | } |
| 4 | |
| 5 | function toCellValue(value) { |
| 6 | if (value === null || value === undefined) return ''; |
| 7 | if (typeof value === 'string') return value; |
| 8 | if (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') { |
| 9 | return String(value); |
| 10 | } |
| 11 | try { |
| 12 | return JSON.stringify(value); |
| 13 | } catch (_) { |
| 14 | return String(value); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | function getArrayObjectCandidates(input) { |
| 19 | const candidates = []; |
no outgoing calls
no test coverage detected