Trim string from left - Node.js String

Node.js examples for String:Trim

Description

Trim string from left

Demo Code

String.prototype.ltrim = function(){   
  return this.replace(/(^\s*)/g, "");
};

Related Tutorials