title: Switch / case: case evaluated to true, not executing
body: <p>I'm struggling with a switch case statement, which is evaluated as true.
  Nevertheless, the code for that case statement is not being executed.
  It's weird for me. Any help will be appreciated. Thanks in advance.</p>
  <pre><code>switch ([operation, state]) {
          case [(Array((Number(state.result).toString() === ['']))) 
                  &amp;&amp; (Array((Number(state.secondNumber).toString() === ['']))) &amp;&amp; 
                  state.mathOp === '' &amp;&amp; operation === '-'] :
                      console.log([operation, state]);
                      setState((state) =&gt; ({
                          result: -Math.abs(Number(['-'])),
                          mathOp: operation,
                          secondNumber: [&quot;&quot;],
                      }));
                      setUpdatedState(false);
                      setValue(0);
                      break;
          
              default: 
                  console.log(new Error('Unknown clickHandlerOp function error...'));
      }
  </code></pre>