Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Delete spaces in text in javascript

var a = b = " /var/www/site/Brand new   document.docx ";

console.log( a.split(' ').join('') );
console.log( b.replace( /s/g, '') ); 
Source by 1loc.dev #
 
PREVIOUS NEXT
Tagged: #Delete #spaces #text #javascript
ADD COMMENT
Topic
Name
1+1 =