MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / span

Function span

src/client/sandbox.mjs:495–500  ·  view source on GitHub ↗
(type, text)

Source from the content-addressed store, hash-verified

493}
494
495function span(type, text) {
496 let sp = document.createElement("span")
497 sp.className = "sandbox-output-" + type
498 sp.appendChild(document.createTextNode(text))
499 return sp
500}
501
502function eltSize(elt) {
503 return elt.textContent.length

Callers 5

representFunction · 0.85
representArrayFunction · 0.85
representObjFunction · 0.85
representSimpleObjFunction · 0.85
addPropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected