Static class to manage things related to the Fetch API. It will return itself if it is tried to be instantiated.
Methods
-
<static> get(resource [, init]) → {Promise}
-
Function that points to the fetch method. If the Fetch API is not supported natively, the fetch function will be a polyfill.
Parameters:
Name Type Argument Description resource
string | Request First parameter of the fetch method.
init
Object <optional>
Second parameter of the fetch method.
Returns:
- Type
- Promise