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)