MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / fmtVal

Function fmtVal

example/tests/gm_value_test.js:69–73  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

67 }
68
69 function fmtVal(v) {
70 return v === undefined
71 ? '<i style="color:#94a3b8">not set</i>'
72 : escHtml(JSON.stringify(v));
73 }
74
75 function nowTime() {
76 return new Date().toLocaleTimeString('en-GB', { hour12: false });

Callers 2

mRefreshKVFunction · 0.85
renderKVFunction · 0.85

Calls 1

escHtmlFunction · 0.85

Tested by

no test coverage detected