SOURCE

const pickList = [1, 4]
    let notDelList = []
    const dataList = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }]

    notDelList = dataList.filter(item => {
      return !(pickList.indexOf(item.id) > -1)
    })

    document.write(JSON.stringify(notDelList))
console 命令行工具 X clear

                    
>
console