mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2024-12-12 08:36:04 +01:00
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);
|
||
|
};
|
||
|
};
|