You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importfetchfrom'isomorphic-fetch';// global bindingsimportnodeFetchfrom'node-fetch';consta=newResponse();constb=newnodeFetch.Response();console.log(ainstanceofnodeFetch.Response);console.log(binstanceofResponse);
the above code would output
false
false
use cases of the above check would be in error handling of fetch especially when extracting that to an external package, though instanceof might not be the best way to do the check.
The text was updated successfully, but these errors were encountered:
the above code would output
use cases of the above check would be in error handling of fetch especially when extracting that to an external package, though
instanceof
might not be the best way to do the check.The text was updated successfully, but these errors were encountered: