Return to Snippet

Revision: 55334
at February 3, 2012 02:11 by kajinka13


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

Initial URL


Initial Description
Add trim method to String class

Initial Title
Add trim method to String class

Initial Tags
javascript, js

Initial Language
JavaScript