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?
Fastest method to replace all instances of a character in a string
javascript
string
replace
45
0
LordPepe
2020-03-14 19:39:59 +0000 UTC