Guest User

Untitled

a guest
Apr 22nd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. async function getJSON(url) {
  2. return await fetch(url, {
  3. method: "GET",
  4. headers: {
  5. "Content-Type": "application/json"
  6. }
  7. }).then(result => result.json())
  8.  
  9. }
Add Comment
Please, Sign In to add comment