Hacker symbol

Invalid Date ~ 1 min read

Replace regex


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"

🤯


Sebastian Bolaños

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on trustless systems.