The String trimStart() method
By Flavio Copes
Learn how the JavaScript trimStart() method returns a new string with the white space removed only from the start, leaving any trailing white space in place.
~~~
Return a new string with removed white space from the start of the original string
'Testing'.trimStart() //'Testing'
' Testing'.trimStart() //'Testing'
' Testing '.trimStart() //'Testing '
'Testing '.trimStart() //'Testing' ~~~
Related posts about js: