Return to Snippet

Revision: 26033
at April 16, 2010 10:27 by electblake


Initial Code
String.prototype.trim = function () {
    return this.replace(/^\s*/, "").replace(/\s*$/, "");
}

Initial URL
http://www.delphifaq.com/faq/f1031.shtml

Initial Description


Initial Title
Extending String object to include the trim() function

Initial Tags


Initial Language
JavaScript