Skip to content

Instantly share code, notes, and snippets.

@typoerr
Created June 12, 2016 02:31
Show Gist options
  • Save typoerr/c374af597a15213b15985a134be47f06 to your computer and use it in GitHub Desktop.
Save typoerr/c374af597a15213b15985a134be47f06 to your computer and use it in GitHub Desktop.
replaceTextRange()
function replaceTextRange(str, start, end, substitute) {
return str.substring(0, start) + substitute + str.substring(end);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment