title: In ES6, how do you check the class of an object?
body: <p>In the ES6, if I make a class and create an object of that class, how do I check that the object is that class?</p>
  
  <p>I can't just use <code>typeof</code> because the objects are still <code>"object"</code>.  Do I just compare constructors?</p>
  
  <p>Example:</p>
  
  <pre><code>class Person {
    constructor() {}
  }
  
  var person = new Person();
  
  if ( /* what do I put here to check if person is a Person? */ ) {
    // do stuff
  }
  </code></pre>