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

Function _toString

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

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

(val)

Source from the content-addressed store, hash-verified

9 * Convert a value to a string that is actually rendered.
10 */
11function _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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected