This question already has answers here:
http://stackoverflow.com//questions/1144783/how-to-replace-all-occurrences-of-a-string”>How to replace all occurrences of a string? (63 answers)
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?
Please login or Register to submit your answer