Jak uzyskać 5 -ciągowy element 5 z 10 z tablicy JavaScript

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)
Delightful Dragonfly