Created
January 25, 2018 08:59
-
-
Save theSekyi/a76cf80be8529b8bcc64689c58bf6b95 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
| let newNavDaily = () => | |
| fetch(oldNavUrl) | |
| .then(resp => { | |
| return resp.json(); | |
| }) | |
| .then(data => { | |
| let nav = data.payload.nav; | |
| return nav; | |
| }); | |
| newNavDaily().then(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment