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

Function eltSize

src/client/sandbox.mjs:502–504  ·  view source on GitHub ↗
(elt)

Source from the content-addressed store, hash-verified

500}
501
502function eltSize(elt) {
503 return elt.textContent.length
504}
505
506function represent(val, space) {
507 if (typeof val == "boolean") return span("bool", String(val))

Callers 2

representArrayFunction · 0.85
representSimpleObjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected