Your syntax is off but if you mean this:
parent = [{
child1: [
{value:'Jhon', selected:false, status:false},
{value:'Marie', selected:false, status:false},
{value:'Less', selected:false, status:false},
],
child2: [
{value:'Math', selected:false, status:false},
{value:'Howard', selected:false, status:false},
{value:'Jen', selected:false, status:false},
]
}]
the easiest way to copy one part of this is to use the spread operator.
let copyParent = [...parent[0].child1]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…