Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ trimLines
Method
trimLines
benchmark/data.js:730–732 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
728
return
length;
729
}
730
trimLines() {
731
return
this.trim(
'[\\r\\n]'
);
732
}
733
trim(charType) {
734
return
this.trimStart(charType).trimEnd(charType);
735
}
Callers
nothing calls this directly
Calls
1
trim
Method · 0.95
Tested by
no test coverage detected