DEV Community

Cover image for Attempt to simplify the fetch API

Attempt to simplify the fetch API

Jaden Concord on January 02, 2021

The fetch API is awesome and super easy to use but I made an attempt to simplify fetch for my needs. I like to take API's or functions and simplify...
Collapse
 
kidkkr profile image
kidkkr

I think the code before is a bit more explicit and easier to understand.

Collapse
 
jadenconcord profile image
Jaden Concord

The original code is definitely easier to understand and read I agree but I was just trying to see if I could simplify it for personal projects on one line.