Checking if a value exist in a set

suggest change

To check if a given value exists in a set, use .has() method:

mySet.has(someVal);

Will return true if someVal appears in the set, false otherwise.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents