Answers for "how to remove all items before space in a string in javascript"

2

javascript remove all spaces from string

str = str.replace(/\s/g, '');
Posted by: Guest on July-22-2020
0

remove extra space in string js

newString = string.replace(/\s+/g,' ').trim();
Posted by: Guest on May-28-2020

Code answers related to "how to remove all items before space in a string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language