Say I have a dictionary
h = { toys: [ { name: 'Toy 1', price: 900 } ] }
and an array
arr = []
How can extend arr with h using push or something else to have
arr.push(h) gives [ { toys: [ [Object] ] } ]
Desired result is:
[ { toys: [ { name: 'Toy 1', price: 900 } ] } ]