Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 10 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import 'isomorphic-fetch'; |
||
2 | import fetch from 'node-fetch'; |
||
3 | |||
4 | export const isFetchResponseError = e => |
||
5 | e instanceof fetch.Response || e instanceof Response; |
||
|
|||
6 | |||
7 | export const isFetchNetworkError = e => e instanceof fetch.FetchError; |
||
8 | |||
9 | export const isFetchError = e => |
||
10 | isFetchResponseError(e) || isFetchNetworkError(e); |
||
11 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.