title: Why does an empty array pass the if(array !== []) check
body: <p>Hi I've been debugging a javascript issue where an empty array default value set in state, passes a conditional check which checks if it is empty.</p>
  <p>I must be overlooking something. Here is what I have:</p>
  <pre><code>state = {
    array: []
  };
  
  if(array !== []){
    //do something
  }
  </code></pre>
  <p>I also have a check for if it is empty - although I need to extend it so that this [] array doesn't return true.</p>
  <p>I have also tried array.length &gt; 0 in lieu of checking against [].</p>
  <p>Any ideas please?</p>
  <p>Thanks</p>