Standard built-ins
String.prototype.trimStart()
Removes ECMAScript whitespace and line terminators at the leading edge without collapsing interior whitespace.
Formal Syntax & Structure
javascript syntaxjavascript
text.trimStart()Return Value
String
Trimmed text.
Working Example
Example Snippetjavascript
console.log(JSON.stringify(" a ".trimStart()));