DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+3 =
Submit