License Public Domain
Lines 3
Keywords
javascript (9) string (7)
Included in this Library
Permissions
Owner: raziel
Viewable by Everyone
Editable by raziel
Hide
Meet people who work on similar things as you – get help if you need it Join Siafoo Now or Learn More

Adds the trim() function to all Strings Atom Feed 0

In Brief This will remove leading/trailing white spaces from a String.... more
# 's
1String.prototype.trim = function() {
2 return this.replace(/^\s+|\s+$/, "");
3}

This will remove leading/trailing white spaces from a String.