Javascript String replace_at(index,value)

Description

Javascript String replace_at(index,value)


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



PreviousNext

Related