Javascript String replaceBetween(start, end, what)

Description

Javascript String replaceBetween(start, end, what)

String.prototype.replaceBetween = function (start, end, what) {
    return this.substring(0, start) + what + this.substring(end);
};



PreviousNext

Related