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