Replace only works on one item. If you wan't to replace all chacters use regex:
"a b c".replace(" ", "") // "ab c"
"a b c".replace(/ /g, "") // "abc"
🤯
Invalid Date ~ 1 min read
Replace only works on one item. If you wan't to replace all chacters use regex:
"a b c".replace(" ", "") // "ab c"
"a b c".replace(/ /g, "") // "abc"
🤯
Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.