The logical OR operator (`||`) will not work in a `switch` `case` as one might think, only the first argument will be considered at execution time.

## Noncompliant Code Example

    switch (x) {
      case 1 || 2: // Noncompliant; only '1' is handled
        doSomething(x);
        break;
      case 3:
        doAnotherThing(x);
        break;
      default:
        console.log("Boom!");  // this happens when x is 2
    }

## Compliant Solution

    switch (x) {
      case 1:
      case 2:
        doSomething(x);
        break;
      case 3:
        doAnotherThing(x);
        break;
      default:
        console.log("Boom!");
    }