node replace all string code example
Example 1: javascript replaceall
//as of August 2020, not supported on older browsers
str.replaceAll("abc","def")
Example 2: replace all javascript
str.split(search).join(replacement);
//as of August 2020, not supported on older browsers
str.replaceAll("abc","def")
str.split(search).join(replacement);