Javascript String replaceAt(index, text)

Description

Javascript String replaceAt(index, text)


String.prototype.replaceAt = function(index, text){
    return this.substr(0, index) + text + this.substr(index + text.length);
}



PreviousNext

Related