string.trimStart
const greeting = ' Hello world! ';
greeting; // " Hello world! "
greeting.trimStart(); // "Hello world! "Syntax
str.trimStart();
str.trimLeft();Return value
Description
Aliasing
Strimg.prototype.trimLeft.name === 'trimStart';Examples
trimStart() μ¬μ©νκΈ°
trimStart() μ¬μ©νκΈ°Browser compatibility
Polyfill
Last updated