I would like to check whether variable a
is equal to b
or c
.
Of course I know the explicit way to do this;
a === b || a === c
but is there a shorthand way of doing this in Javascript? I mean, for example,
a === (b || c)
does not work.
I found similar questions here
but they are talking about PHP.