* Convert a value to a string that is actually rendered.
(val)
| 9 | * Convert a value to a string that is actually rendered. |
| 10 | */ |
| 11 | function _toString (val) { |
| 12 | return val == null |
| 13 | ? '' |
| 14 | : typeof val === 'object' |
| 15 | ? JSON.stringify(val, null, 2) |
| 16 | : String(val) |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Convert a input value to a number for persistence. |
nothing calls this directly
no outgoing calls
no test coverage detected