Menu
Instead of looping through an array to find an element, is it possible to create a set in JavaScript?
I wanna be able to do something like this:
myset = (’10’,’20’,’abc’,’hi’)
…
if (curVar In myset) {dosomething}
is this possible in JavaScript… couldn’t find it using search.
Thanks in advance.
Tom