I would like to find if my string contains any element of the array if it did I would like to remove it for now I could manage to find if it exist or not but not sure how to remove it here is a sample of my code
const arr = ["hi", "hello"," there"]
const msg = "hi I would like to eat ice";
console.log(arr.some(word => msg.toLowerCase().includes(word.toLowerCase()))); // result true
console.log(msg); // new message should be "I would like to eat ice"