Task: Remove items from a list A given list B.
var myArray = ['one', 'two', 'three'] var toxic = ['two'] myArray2 = myArray.filter(x => (x !== toxic.includes(x))) console.log(myArray2)
// ************************** myArray3 = myArray.reduce( (a,b) => { if (!toxic.includes(b)) { a.push(b) } return a } , []) console.log(myArray3)