Skip to content

Instantly share code, notes, and snippets.

@aromig
Created December 20, 2017 17:35
Show Gist options
  • Save aromig/7879be53df890af650cdfe4e8121b0c8 to your computer and use it in GitHub Desktop.
Save aromig/7879be53df890af650cdfe4e8121b0c8 to your computer and use it in GitHub Desktop.
String.prototype.replaceCharAt = function (index, character) {
return this.substr(0, index) + character + this.substr(index + character.length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment