BASELINE NowYouCanUse.com
Limited Availability Strings

String trimLeft() and trimRight()

The trimLeft() and trimRight() methods of strings return a new string with whitespace removed from the beginning or end of the string. They're aliases for trimStart() and trimEnd().
Baseline Status: This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Jul 29, 2015.
Desktop Browser Engine Support
Google Chrome
4
Supported
Mozilla Firefox
3.5
Supported
Apple Safari
5
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
18
Firefox Android
4
Safari iOS
4.2
Specifications and References
id: string-trim-leftright