SniberbS
Reactiflux4y ago
9 replies
Sniberb

⛄ Snowberb ⛄ – 15-39 Jun 25

I do not know how to search this question in google, so I'll write it here. I want to create an array of objects like this:
 const bets = ["key": {object}, "key": {object}, "key": {object}]

key
being a
uuid
that I will randomly generate, and all that data comes from another array of objects which is like this:
const savedBets = [{}, {}, {}...]

I've heard of
Hash maps
but I never used one. Is that the best way to transform
savedBets
into the structure that I want?
Was this page helpful?