Created
June 12, 2016 02:31
-
-
Save typoerr/c374af597a15213b15985a134be47f06 to your computer and use it in GitHub Desktop.
replaceTextRange()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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