how can I merge two objects of objects into one object?
Example
let obj1 = {monkey:{size: 120, color: "black"}, cat: {size: 30, color: "gray"}}
let obj2 = {monkey:{country: "africa", test: "test"}, cat: {country: "all", testCat: "testCat"}}
Output should be :
{monkey:{size: 120, color: "black", country: "africa", test: "test"}, cat: {size: 30, color: "gray", country: "all", testCat: "testCat"}}
I dont know how many animals are there.
something like this
let merged = {...obj1, ...obj2}