remove whitespace with regex javascript
snippet in javascript

remove whitespace with regex javascript

user9386

return str.replace(/\s/g, '');