gravity well (Rob Tomlin)
1 min readJun 8, 2020

--

Hi Samuel. If I understand correctly, you are trying to get the list of names and then possibly loop through them? If this is the case, store the names in an array and use the map method of the array to then perform the reading.

However, this will be easier to manage if you convert the promise based call to async/await. This can be tricky in a map.

Here is an article that might help.

https://flaviocopes.com/javascript-async-await-array-map/

--

--

gravity well (Rob Tomlin)
gravity well (Rob Tomlin)

Written by gravity well (Rob Tomlin)

Software Engineering Manager. Explorer, learner, teacher, and more

No responses yet