Share your repls and programming experiences

← Back to all posts
caching-API-results-with-closures
h
RoryMatthews (0)

A function which allows you to make an API call with fetch(), but if there is already a result stored for the endpoint given then that will be returned first.