Javascript String leftTrim(a)

Description

Javascript String leftTrim(a)


String.prototype.leftTrim = function (a) {
    var reg = new RegExp('^' + a + '+')
    return this.replace(reg, "");
}



PreviousNext

Related