I have misunderstood how to remove an element in an array which has a matching element to another array.
Example:
const items = ['first', 'second', 'third']
const secondItems = ['first', 'second']
Expected:
console.log(items) | 'third'
console.log(secondItems) | 'first', 'second
Hope some example how to achieve that. Tried many times with two forEach or filter and checking statement but I always get the wrong result.