title: Why object transfered to the a string?
body: <pre><code>var added = this.checkList.filter(function(item) {
    console.log(typeof(item)); // line 1
    console.log(item);  // line 3
    return item.name == username;  // line 2
  })
  </code></pre>
  
  <p>This is my code, the line 1 output Object exactly, and it have a name property
  but why line 2 output the error </p>
  
  <blockquote>
    <p>Property 'name' does not exist on type 'string'.</p>
  </blockquote>
  
  <p>I don't know what happened ?</p>
  
  <p>Edit:
  line 3 output:</p>
  
  <blockquote>
    <p>Object {name: "22", $key: "-KhEHRWZ-6981DJyygd4", $exists: function}
    name
    :
    "22"
    $exists
    :
    function ()
    $key
    :
    "-KhEHRWZ-6981DJyygd4"
    <strong>proto</strong>
    :
    Object</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/XL4OC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XL4OC.png" alt="104 for the line3 105 for the line 2"></a></p>