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

Method trim

src/Bundle.js:258–260  ·  view source on GitHub ↗
(charType)

Source from the content-addressed store, hash-verified

256 }
257
258 trim(charType) {
259 return this.trimStart(charType).trimEnd(charType);
260 }
261
262 trimStart(charType) {
263 const rx = new RegExp('^' + (charType || '\\s') + '+');

Callers 4

trimLinesMethod · 0.95
Bundle.test.jsFile · 0.45
isEmptyMethod · 0.45

Calls 2

trimStartMethod · 0.95
trimEndMethod · 0.45

Tested by

no test coverage detected