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

Function _toString

static/vuejs/vue.common.js:13–19  ·  view source on GitHub ↗

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

(val)

Source from the content-addressed store, hash-verified

11 * Convert a value to a string that is actually rendered.
12 */
13function _toString (val) {
14 return val == null
15 ? ''
16 : typeof val === 'object'
17 ? JSON.stringify(val, null, 2)
18 : String(val)
19}
20
21/**
22 * Convert a input value to a number for persistence.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected