I have 2 objects, and I need to add one object to the other object.
var loc = {
leftArray: [],
topArray: [],
bottomArray: [],
rightArray: []
}
var obj = {
id: "ce",
icon: "logo/image.png",
name: "CE",
type: "type2",
version: 3.4
}
var obj = {
id: "ce",
icon: "logo/image.png",
name: "CE",
type: "type2",
version: 3.4,
leftArray: [],
topArray: [],
bottomArray: [],
rightArray: []
}
Is there any simple way to do this?