Jason Knight
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!

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

No responses yet