MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / trim

Function trim

scripts/viewScriptsUsed.js:18–20  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

16 b = d.body;
17
18 function trim(s) {
19 return s.replace(/^\s*\n/, "").replace(/\s*$/, "");
20 }
21
22 function add(h) {
23 b.appendChild(h);

Callers 1

viewScriptsUsed.jsFile · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected