Javascript String replaceAt(index, char)

Description

Javascript String replaceAt(index, char)



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



PreviousNext

Related