/ 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.
gbot on 04/18/08
1 person 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.