🌈 搜索
📅  最后修改于: 2022-03-11 15:03:23.698000             🧑  作者: Mango
// remove 5 let arr = [1,2,3,4,5,6]; let remove = arr.filter((id) => id !== 5) console.log(remove) // [1,2,3,4,6]