Is it safe to assume strict comparison in a JavaScript switch statement?

Take a look at ECMA 262, section 12.11, the second algorithm, 4.c.

c. If input is equal to clauseSelector as defined by the === operator, then…

Leave a Comment