JavaScript Replace All Instances of a String

added by JavaScript Kicks
12/1/2018 7:30:23 PM

1217 Views

I've started building out our JavaScript Glossary and when I got to the replace() method, I had to build out a snippet to handle replacing all occurrences of a string in a string. Normally String replace() only replaces the first instance it finds.


0 comments