https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
I have a Set with a whole bunch of things but I want to regex (or just check if part of a string exists) in the set.
I was thinking something like this.
mySet = new Set(["foo", "bar", "something SomethingIWant somethingelse"]);
/SomethingIWant/.test(mySet);
// false
mySet.forEach(myRegex(/SomethingIWant/));
// Doesn't work as I expect
Basically I need a function to iterate over a set(that I specify), regex testing each item (with a regex that I specify).
Does javascript allow this?