/ Published in: JavaScript
Expand |
Embed | Plain Text
String.prototype.trim = function() { return this.replace( /(^\s*)|(\s*$)/g, "" ); }
You need to login to post a comment.
2ndboy on 07/25/06
3 people have marked this snippet as a favorite
String.prototype.trim = function() { return this.replace( /(^\s*)|(\s*$)/g, "" ); }
You need to login to post a comment.