Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

A string trim function

String.prototype.trim = function(){return this.replace(/^s+|s+$/g, "");};
Source by hackr.io #
 
PREVIOUS NEXT
Tagged: #A #string #trim #function
ADD COMMENT
Topic
Name
8+3 =