📅  最后修改于: 2022-03-11 15:02:00.945000             🧑  作者: Mango
const items = ['a', 'b', 'c', 'd', 'e', 'f']
const valuesToRemove = ['c', 'd']
const filteredItems = items.filter(item => valuesToRemove.includes(item))
// ["a", "b", "e", "f"]
console.log(filteredItems)