say you have a function like
const doFetch = async (url, token) => fetch(url+token);
and an object like
const accounts = {'a': 'foo.com', 'b': 'bar.com'};
how would you call the doFetch function for each property of the accounts object in such a way that you end up with a result like
const results; // {'a', ['results', 'of', 'doFetch('foo.com', 'a')'], 'b': ['results', 'of', 'doFetch('bar.com', 'b')']}
here's chatGPT's suggestion
