I am grouping payloads with merge map, and to be able to separate the results, i want to have a series of Json (objects) as Arrays. Like this: {Array1:[]}, Array2:[]} I use the toArray() operator to get the payload as an Array, but i dont now (maybee map operator) how to put this array in an Object (Json).
const image$ = ref.getDownloadURL().pipe(toArray());
The result is: [ {...}, {...}, {...} ] And what i want is: { objectName:[ {...}, {...}, {...} ] }
Thanks for your help.
map()I guess. Likemap(array => ({objectName: array }))