before insertion:
var arr = [
{
id:1,
name:""
},
{
id:2,
name:""
}
]
after insertion:
var arr = [
{
id:1,
name:"",
age:18
},
{
id:2,
name:"",
age:21
}
]
how to achieve this with js?