MCPcopy Create free account
hub / github.com/TruthHun/BookStack / _toString

Function _toString

static/vuejs/vue.runtime.js:17–23  ·  view source on GitHub ↗

* Convert a value to a string that is actually rendered.

(val)

Source from the content-addressed store, hash-verified

15 * Convert a value to a string that is actually rendered.
16 */
17function _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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected