I would like to assign the first object to the second object that have the same properties. What you suggest as quick method? Do I need to loop over the stores object separately?
1st object:
{
  title: 'test',
  description: 'desc',
  tags: ['tag1','tag2']
}
2nd object:
{
 title: '',
 description: '',
 tags: [],
 stores: [
    {
        id: 1,
        title: '',
        description: '',
        tags: '',
        template: '',
        link: '',
        active: true
    },
    {
        id: 2,
        title: '',
        description: '',
        tags: '',
        template: '',
        link: '',
        active: false
    }
 ]
}
Results:
{
 title: 'test',
 description: 'desc',
 tags: ['tag1', 'tag2'],
 stores: [
    {
        id: 1,
        title: 'test',
        description: 'desc',
        tags: '['tag1', 'tag2']',
        template: '',
        link: '',
        active: true
    },
    {
        id: 2,
        title: 'test',
        description: 'desc',
        tags: '['tag1', 'tag2']',
        template: '',
        link: '',
        active: false
    }
 ]
}
 
     
     
    