I have an array of objects like below
myobjects = [
 {
   id: 1,
   images: [
    {imgName: 'image name.jpg',type: ''},
    {imgName: 'image name.jpg',type: ''}
 }
]
Now i assign myObj to another variable so that i can make changes to that variable without altering the myObj. e.g:
newObjects = [
 {
   id: 1
   images: [
    {imgName: "image name.jpg"},
    {imgName: "image name.jpg"}
   ]
  }
]
 
    