Here you can find the source of replaceAll(search, replace)
String.prototype.replaceAll = function(search, replace){ return this.split(search).join(replace); }
String.prototype.replaceAll = function(search, replace) if(!replace) return this; return this.replace(new RegExp('[' + search + ']', 'g'), replace); }; trim11 = function (str) { str = str.replace(/^\s+/, ''); for (var i = str.length - 1; i >= 0; i--) { ...
String.prototype.replaceAll = function(search, replace) { if (replace === undefined) { return this.toString(); return this.split(search).join(replace);
String.prototype.replaceAll = function (search, replace) { return this.replace(new RegExp(search, 'g'), replace); }; String.prototype.ltrim = function () { return this.replace(/^\s+/,""); }; String.prototype.rtrim = function () { return this.replace(/\s+$/,""); }; ...
String.prototype.replaceAll = function (search, replace) { if (replace === undefined) { return this.toString(); return this.replace(new RegExp('[' + search + ']', 'g'), replace); };
String.prototype.replaceAll = function (search, replace) { 'use strict'; return this.split(search).join(replace); };
String.prototype.replaceAll = function(search, replace) { if(!replace) { return this; return this.replace(new RegExp(helpers.escapeRegExp(search), 'g'), replace); };
String.prototype.replaceAll = function(search, replacement) { var target = this; return target.split(search).join(replacement); };
String.prototype.replaceAll = function(search, replacement) { var target = this; return target.replace(new RegExp(search, 'g'), replacement); };
String.prototype.replaceAll = function(search, replacement) { 'use strict'; return this.split(search).join(replacement); };