function Different (datas, arr) {
const res = [...datas, ...arr].filter(item => !(datas.some(p => item.auth_id == p.auth_id) && arr.some(c => item.auth_id == c.auth_id)))
return res
}
function Different (datas, arr) {
const res = [...datas, ...arr].filter(item => !(datas.some(p => item.auth_id == p.auth_id) && arr.some(c => item.auth_id == c.auth_id)))
return res
}
本文标题:2个数组找不同数据
本文链接:https://www.haomeiwen.com/subject/tfmwwrtx.html
网友评论