📌  相关文章
📜  从数组 javascript 代码示例中删除值

📅  最后修改于: 2022-03-11 15:03:23.698000             🧑  作者: Mango

代码示例6
// 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]