* Convert a value to a string that is actually rendered.
(val)
| 93 | * Convert a value to a string that is actually rendered. |
| 94 | */ |
| 95 | function toString (val) { |
| 96 | return val == null |
| 97 | ? '' |
| 98 | : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString) |
| 99 | ? JSON.stringify(val, null, 2) |
| 100 | : String(val) |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Convert an input value to a number for persistence. |
nothing calls this directly
no test coverage detected