MCPcopy
hub / github.com/vaxilu/x-ui / toString

Function toString

web/assets/vue@2.6.12/vue.runtime.esm.js:90–96  ·  view source on GitHub ↗

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

(val)

Source from the content-addressed store, hash-verified

88 * Convert a value to a string that is actually rendered.
89 */
90function toString (val) {
91 return val == null
92 ? ''
93 : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
94 ? JSON.stringify(val, null, 2)
95 : String(val)
96}
97
98/**
99 * Convert an input value to a number for persistence.

Callers

nothing calls this directly

Calls 1

isPlainObjectFunction · 0.70

Tested by

no test coverage detected