MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / trimEnd

Method trimEnd

benchmark/data.js:757–760  ·  view source on GitHub ↗
(charType)

Source from the content-addressed store, hash-verified

755 return false;
756 }
757 trimEnd(charType) {
758 this.trimEndAborted(charType);
759 return this;
760 }
761 trimStartAborted(charType) {
762 const rx = new RegExp('^' + (charType || '\\s') + '+');
763 this.intro = this.intro.replace(rx, '');

Callers

nothing calls this directly

Calls 1

trimEndAbortedMethod · 0.95

Tested by

no test coverage detected