api/queryAPI.js
// return the search result and the function that made the call
return the search result and the function that made the call
return the search result and the function that made the call
async function queryBasic(name) {
  let response = await api.searchSeries(name).catch();
  let validStatus = await validResponse(response, queryBasic, name).catch();
  if (validStatus === true) {
    return response;
  }
}
async function queryBasic ( name ) { let response = await api . searchSeries ( name ) . catch ( ) ; let validStatus = await validResponse ( response , queryBasic , name ) . catch ( ) ; if ( validStatus === true ) { return response ; } }
return the search result and the function that made the call
return the search result and the function that made the call