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

Method trimStart

src/MagicString.ts:1104–1107  ·  view source on GitHub ↗

* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.

(charType?: string)

Source from the content-addressed store, hash-verified

1102 * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.
1103 */
1104 trimStart(charType?: string): this {
1105 this.trimStartAborted(charType)
1106 return this
1107 }
1108
1109 /**
1110 * Indicates if the string has been changed.

Callers 2

trimMethod · 0.95
trimStartAbortedMethod · 0.45

Calls 1

trimStartAbortedMethod · 0.95

Tested by

no test coverage detected