Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ trimEnd
Method
trimEnd
src/MagicString.js:776–779 ·
view source on GitHub ↗
(charType)
Source
from the content-addressed store, hash-verified
774
}
775
776
trimEnd(charType) {
777
this.trimEndAborted(charType);
778
return
this;
779
}
780
trimStartAborted(charType) {
781
const
rx =
new
RegExp(
'^'
+ (charType ||
'\\s'
) +
'+'
);
782
Callers
2
trim
Method · 0.45
trimEndAborted
Method · 0.45
Calls
1
trimEndAborted
Method · 0.95
Tested by
no test coverage detected