Created
January 16, 2018 20:19
-
-
Save vontell/621978bb803a775c55d396c1661f9e11 to your computer and use it in GitHub Desktop.
001 Get Url
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
/** | |
* Returns the saved URL given the shortened URL (generated by this program) | |
* shortenedURL - A shortened URL generated by this program instance | |
*/ | |
function getURLFromShortened(shortenedURL) { | |
return urlDictionary[shortenedURL.replace(baseDomain, "")]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment