Created
April 28, 2020 21:09
-
-
Save wmantly/492bb4dcb1039446bf3df0484030c9f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func parse_path(props, params, path){ | |
for(let key in props) | |
if(params[key]){ | |
path.replace(`{${key}}`, params[key]); | |
}else{ | |
throw "some error"; | |
} | |
return path; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment