patternTrimStart
patternTrimStart(
string,pattern?):string
Defined in: packages/core/src/pattern/pattern-trim.ts:88
Trims the specified pattern from the start of the string.
This method is like String.prototype.trimStart(), but allows specifying a
custom pattern. Use buildPatternTrimStart instead when trimming the
same pattern repeatedly.
Parameters
Section titled “Parameters”string
Section titled “string”string
The string to be trimmed.
pattern?
Section titled “pattern?”string
The pattern to be trimmed. If not provided, whitespace and line terminators are trimmed.
Returns
Section titled “Returns”string
The trimmed string.