I currently have this set:
Set1 = {
Alpha: [One, Two],
Beta: [One, Two, Three],
Delta: [One]
}
I also have this array of elements:
Arr1 = [Alpha_One, Beta_One, Beta_Two, Delta_One]
I'm looking for a way to programmatically remove all of the elements that are found in this set to it's respective array, like so:
Set1 = {Alpha: [Two], Beta: [Three], Delta: []}
As far as I know, the forEach() method does not take if statements, so I don't know if there is another method to do it.