docs: async function getJSON(res) {
    const contentType = res.headers.get('Content-Type');
    const emptyCodes = [204, 205];
  
    if (
      !~emptyCodes.indexOf(res.status) &&
      contentType &&
      ~contentType.indexOf('json')
    ) {
      return await res.json();
    } else {
      return await Promise.resolve();
    }
  }