📅  最后修改于: 2022-03-11 15:01:37.994000             🧑  作者: Mango
代码示例6
let value = 3
let arr = [1, 2, 3, 4, 5, 3]
arr = arr.filter(item => item !== value)
console.log(arr)
// [ 1, 2, 4, 5 ]