Garmaine Staff asked 2 years ago
This question already has answers here:
Closed 2 months ago.

What is the fastest way to replace all instances of a string/character in a string in JavaScript? A while, a for-loop, a regular expression?