Javascript String replaceAll(target, replacement)

Description

Javascript String replaceAll(target, replacement)


String.prototype.replaceAll = function (target, replacement) {
    return this.split(target).join(replacement);
};



PreviousNext

Related