Created
March 16, 2019 14:01
-
-
Save NMZivkovic/d157ae0871aa10b1e8b0b2d5d87bf39a to your computer and use it in GitHub Desktop.
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
/** | |
* @desc retrieves data from defined location | |
* @return wine data as json | |
*/ | |
async function getDataFunction() { | |
const wineDataReq = await fetch('https://raw.githubusercontent.com/NMZivkovic/file_hosting/master/wine_quality.json'); | |
const wineData = await wineDataReq.json(); | |
return wineData; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment