current array
let arr=[
{id:1,name:"",age:18},
{id:2,name:"",age:19},
{id:3,name:"",age:25},//
{id:4,name:"",age:20},
{id:5,name:"",age:15},
{id:6,name:"",age:252},//
{id:7,name:"",age:8},
{id:8,name:"",age:9},
{id:9,name:"",age:5}//
];
I want to change to the following two arrays
let arr1 = [//
{id:1,name:"",age:18},
{id:2,name:"",age:19},//
{id:4,name:"",age:20},
{id:5,name:"",age:15},//
{id:7,name:"",age:8},
{id:8,name:"",age:9}//
];
let arr2 =[//
{id:3,name:"",age:25},//
{id:6,name:"",age:252},//
{id:9,name:"",age:5},//
]