License Public Domain
Lines 3
Keywords
javascript (9) string (7)
Included in this Library
Permissions
Owner: raziel
Viewable by Everyone
Editable by raziel
Hide
Solve a problem – Filter by language, license, keyword, owner, or search text to find code & info fast. 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.