I am very new to the javascript part I have one array of objects (this is a constant object) and another response is coming from the API which contains an array of objects,now I want to merge a constant array of objects inside the response objects
//constant array
var temp = [{
'key1' : 'valu1',
'key2' : 'val2'
}];
response_from_api = [
{
"created_date": "2022-07-28",
"tank_type": "2"
},
{
"created_date": "2022-07-28",
"tank_type": "1"
},
I want to merge temp array inside the response_from_api array of each object