How do you have a NaN case in a switch statement?
<p>Since <code>NaN === NaN</code> evaluates to <code>false</code>, is it possible to add a <code>NaN</code> case to a <code>switch</code> statement?</p>

<p>For example, let's say I want to make the following switch:</p>

<pre><code>switch(x){
    case 1:
    case 2:
    case 4:
        doSomething();
        break;
    case NaN:
        doSomethingElse();
        break;
    case default:
        doADifferentThing();
        break;
}
</code></pre>

<p>Sending <code>NaN</code> as <code>x</code> will go to the default case. I know there are ways around using <code>NaN</code> in switch statements (e.g. I can surround with an <code>if..else</code> statement and use <code>isNaN</code>), but is there a more direct approach?</p>
