I have this object schema:
{
car: [
{
//Object data
}
],
motorcycle: [
{
//Object data
}
],
...
}
My question is how I get all the objects from cars and motorcycles in one object like this:
Basically I want all key,value pairs from motorcycle and cars in one object –
{
key1 : {//Object Data},
key2 : {//Object Data},
}