dmitripavlutin.com
3 Ways To Replace All String Occurrences in JavaScript
3
You can replace all occurrences of a string using split and join approach, replace() with a regular expression and the new replaceAll() string method. Read full article