Right now I am getting a list of 10 url's from a promise from firebase and I then logging them to the console. What I would like to do is store the list in an object but I don't know how to return it from the promise to use elsewhere in my code.
I tried array.push as well as return obj but that doesn't seem to work well.
const multipleurls = await Promise.all([urlRef.getDownloadURL()])
.then((data) => data.forEach(function (obj){
console.log(obj) // this is logging all the values so i know the promise fine.
}))
UPDATE:: I took away the object multiple urls and left it as a function and then i returned obj and it worked.