JavaScript: String.prototype.trimStart

By Xah Lee. Date: . Last updated: .

New in JS2019.

str.trimStart()
same as str.trimLeft()
str.trimLeft()
Return a new string with whitespaces on the left removed. [see Whitespace Characters]
console.log( "  t".trimStart () === "t" ); // true

console.log( "  t".trimLeft () === "t" ); // true
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

String

prototype