SOURCE

const arr = [
    {
        id: 1,
        article: {
            id: 1,
            name: '商品1'
        }
    },
    {
        id: 2,
        article: {
            id: 2,
            name: '商品2'
        }
    },
]
let obj = {}

arr.forEach(item => {
    obj[item.id] = item
})

delete obj[1]
console 命令行工具 X clear

                    
>
console