JavaScript String.trimStart() Online
Trim whitespace from the start using trimStart().
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
The default trims whitespace on the selected side. An optional character list extends the browser tool beyond the JavaScript method.
manuals plus
manuals plus
Using this operation in JavaScript
The interactive result uses JavaScript. JavaScript string indexes count UTF-16 code units. Use code-point iteration when working with supplementary Unicode characters.