Skip to content

Instantly share code, notes, and snippets.

@codergautam
Created January 8, 2023 19:15
Show Gist options
  • Save codergautam/3dda16d789c83b7d9f4f7418ff67215e to your computer and use it in GitHub Desktop.
Save codergautam/3dda16d789c83b7d9f4f7418ff67215e to your computer and use it in GitHub Desktop.
One-line Fetch API
const fetcher = (...args) => fetch(...args).then((res) => res.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment