MCPcopy Create free account
hub / github.com/bugy/script-server / getText

Function getText

web-src/tests/unit/main-app/scripts/ScriptList_test.js:51–56  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

49 });
50
51 function getText(item) {
52 return Array.from(item.childNodes)
53 .filter(child => child.nodeType === 3)
54 .map(child => child.nodeValue.trim())
55 .reduce((left, right) => left + right);
56 }
57
58 function getGroupText(groupItem) {
59 let groupTextItem = $(groupItem).find('> .script-group > span').get(0);

Callers 3

getGroupTextFunction · 0.70
getTopLevelItemsFunction · 0.70
assertGroupItemsFunction · 0.70

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected