1 min readJun 16, 2020
NO S*** SHERLOCK. Wow, replace only does the first whilst replaceAll does all, whoddathunkit?
Oh that's right, anyone who's read the flipping specs or bothered learning from a decent source like MDN.
It has a purpose, sometimes you only WANT the first. That doesn't mean you blanket stop using it for what it's flipping FOR!