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

Method trimEnd

src/MagicString.ts:1064–1067  ·  view source on GitHub ↗

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

(charType?: string)

Source from the content-addressed store, hash-verified

1062 * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end.
1063 */
1064 trimEnd(charType?: string): this {
1065 this.trimEndAborted(charType)
1066 return this
1067 }
1068
1069 /** @internal */
1070 trimStartAborted(charType?: string): boolean {

Callers 2

trimMethod · 0.45
trimEndAbortedMethod · 0.45

Calls 1

trimEndAbortedMethod · 0.95

Tested by

no test coverage detected