Skip to tool

JavaScript String.trimStart() Online

Trim whitespace from the start using trimStart().

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.

Sample input
   manuals plus
Sample output
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.

JavaScript reference