Hi how to append javascript objects to another one for example:
ObjectA = [
{
"id":"1",
"name":"name 1"
}
]
ObjectB = [
{
"id":"2",
"name":"name 2"
}
]
result would be like this:
Result = [
{
"id":"1",
"name":"name 1"
},
{
"id":"2",
"name":"name 2"
}
]
I tried to use Object.Assign() but it just overwrite the first object. Hope you can help me with this. Thanks!