Web features explorer

String trimStart() and trimEnd()

Widely available
Tags: js Groups: Strings Primitive types JavaScript

The trimStart() and trimEnd() methods of strings return a new string with whitespace removed from the beginning or end of the string.

Compatibility

Specifications

BCD data