title: JS typeOf(array) = 'object'
body: <p>I'm confused about how JS's typeOf works.</p>
  
  <p>I have an ES6 class with a property array.</p>
  
  <p>When I console.log this property, it shows 'object'.</p>
  
  <pre><code>class Team extends Model {
    constructor(view){
      super(config.saveName + ' Team');
      this.members = [];   // Clearly an array.
    }
  
    addPerson(person){
      this.members.push(person);
      this.emit('personAdded', person);
    }
  
    removePerson(person){
      if(this.members.includes(person)){
          this.members.splice(this.members.indexOf(person),1);
          this.emit('personRemoved', person);
      }
    }
  
    update(newTeam){
      this.members = newTeam;
      this.emit('teamDataChanged', this.members);
    }
  }
  
  console.log(typeOf(new Team().members)); // 'object'
  </code></pre>