MCPcopy Create free account
hub / github.com/BrainicHQ/DoHSpeedTest / nodeText

Function nodeText

tests/settings-persistence.test.mjs:118–122  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

116}
117
118function nodeText(element) {
119 if (!element) return '';
120 if (!element.children || element.children.length === 0) return element.textContent;
121 return element.children.map(nodeText).join('');
122}
123
124function listText(element) {
125 return element.children.map(nodeText);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected