Here is the array data I am working with:
var service: [{
id: '1',
name: 'gana',
age: '21',
spare: 'rinch',
}];
I am looking to add a static empty array within this data,
Is it possible to insert an empty array into another array using the map function?
My desired output is :
var service: [{
id: '1',
name: 'gana',
age: '21',
spare: 'rinch',
all:[]
}];
Please provide any solutions or ideas you may have. Thank you.