How can I automatically replace all instances of multiple spaces with a single space in Javascript?
I tried linking several s.replace , but this does not seem optimal.
I also use jQuery if it is built-in functionality.
javascript jquery replace
Alex Jul 20 2018-10-10T00: 00Z
source share