JS: 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.
console.log("  t".trimStart() === "t");

console.log("  t".trimLeft() === "t");
BUY ΣJS JavaScript in Depth