Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

trim() javascript

var str=" I have outer spaces       ";
var cleanStr=str.trim();  //return:"I have outer spaces" >> outer spaces removed
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
9+1 =