code: async function fetchUserWithProfile(httpClient, uid) {
    // the delay query param adds arbitrary delay to the response
    const user =
      await httpClient.get(`https://reqres.in/api/users/${uid}?delay=${delay}`)
        .then(resp => resp.data.data); // use data property of payload
  
    // we can use data from user to fetch fake profile
    const profile =
      await httpClient.get(`https://reqres.in/api/profile/${user.id}`)
        .then(resp => resp.data.data);
  
    user.profile = profile; // combine profile into user object
    return user;
  }
docs: Makes request to get user, then requests profile and merges them.
  Note: async function returns a promise which resolves to the user.
  @param {object} httpClient - axios like client
  @return {promise} userPromise - promise resolving to user with profile
  @throws {error} fetchError - any fetching error