MCPcopy 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

trimMethod · 0.45
trimEndAbortedMethod · 0.45

Calls 1

trimEndAbortedMethod · 0.95

Tested by

no test coverage detected