title: Javascript !instanceof If Statement
body: <p>This is a really basic question really just to satisfy my curiosity, but is there a way to do something like this:</p>
  
  <pre><code>if(obj !instanceof Array) {
      //The object is not an instance of Array
  } else {
      //The object is an instance of Array
  }
  </code></pre>
  
  <p>The key here being able to use the NOT ! in front of instance. Usually the way I have to set this up is like this:</p>
  
  <pre><code>if(obj instanceof Array) {
      //Do nothing here
  } else {
      //The object is not an instance of Array
      //Perform actions!
  }
  </code></pre>
  
  <p>And its a little annoying to have to create an else statement when I simply want to know if the object is a specific type.</p>