let oldDataList = [{id:1,value:1},{id:2,value:2},];
let newDataList = [{id:1,value:1},{id:3,value:3},];
let createDataList = [...newDataList];
let deleteDataList = [...oldDataList];
for(let i=0; i<newDataList.length; i++){
for(let j=0; j<oldDataList.length; j++){
if(newDataList[i].id == oldDataList[j].id){
createDataList.splice(createDataList.findIndex(item => item.id === newDataList[i].id), 1);
deleteDataList.splice(deleteDataList.findIndex(item => item.id === newDataList[i].id), 1);
}
}
}
console.log(createDataList);
console.log(deleteDataList);
console