📅  最后修改于: 2022-03-11 15:01:37.890000             🧑  作者: Mango
const items = ['a', 'b', 'c', 'd', 'e', 'f']
const valueToRemove = 'c'
const filteredItems = items.filter(item => item !== valueToRemove)
// ["a", "b", "d", "e", "f"]