Checking if a value exists in a set
suggest changeTo check whether a given value exists in a set, use the .has() method:
mySet.has(someVal);
Will return true if someVal appears in the set, false otherwise.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents