What is the difference between isomorphic-fetch and fetch?

JavascriptFetch ApiIsomorphic Fetch-Api

Javascript Problem Overview


I've seen two different fetch here:

Can someone tell me the difference between the two?

PS: I've read the README.md but I still didn't get the difference. Last time I checked, Isomorphic means it has similar form or relation. It still doesn't make sense to me.

Javascript Solutions


Solution 1 - Javascript

FETCH is polyfill for browsers which don't have fetch function (caniuse.com/#search=fetch). It will add fetch function to your browser window object.

While isomorphic-fetch is implementation of fetch for both node.js and browser, built on top of fetch polyfill.

Solution 2 - Javascript

> The Fetch API is currently not implemented consistently across browsers. This module will enable you to use fetch in your Node code in a cross-browser compliant fashion.

Short answer, isomorphic fetch is a better way of using fetch because it covers a wide range of browsers than the native fetch API.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJoshua RajandiranView Question on Stackoverflow
Solution 1 - JavascriptSergeyView Answer on Stackoverflow
Solution 2 - JavascriptFavour Felix ChinemeremView Answer on Stackoverflow