mirror of https://gitlab.com/octtspacc/sitoctt
7 lines
197 B
JavaScript
7 lines
197 B
JavaScript
|
if (!String.prototype.replaceAll) {
|
||
|
// https://stackoverflow.com/a/63958411
|
||
|
String.prototype.replaceAll = function replaceAll(search, replace) {
|
||
|
return this.split(search).join(replace);
|
||
|
};
|
||
|
};
|