Javascript String dotrim()

Description

Javascript String dotrim()


String.prototype.dotrim = function () {
return this .replace(/^\s\s*/, '' ).replace(/\s\s*$/, '' );
}



PreviousNext

Related