(value)
| 41 | } |
| 42 | |
| 43 | function numberFormat(value) { |
| 44 | if (value === null || value === undefined || value === '') { |
| 45 | return 'n/a'; |
| 46 | } |
| 47 | const number = Number(value); |
| 48 | if (!Number.isFinite(number)) { |
| 49 | return String(value); |
| 50 | } |
| 51 | return new Intl.NumberFormat().format(number); |
| 52 | } |
| 53 | |
| 54 | function formatTimestamp(value) { |
| 55 | if (!value) { |
no outgoing calls
no test coverage detected