title: Vue Js filters not working
body: <p>I'm having achieving a data set through <code>axios</code> which I'm trying to display in <code>VueJs</code>, Following is the data set:</p>
  
  <pre><code>{
  "model":[
      {
          "id":2,
          "company_id":5,
          "salutation":"Mr",
          "first_name":"Check",
          "last_name":"Contact",
          "number":"234567890",
          "email":"check@contact.com",
          "alt_email":null,
          "address":"Thane",
          "city":"Thane",
          "state":"Maharastra",
          "country":"India",
          "profile":"Research-Corporate Access",
          "sectors_interested":"[\"Infrastructure\",\"Financial Services\",\"Capital Goods\",\"Pharmaceuticals\",\"Real Estate\"]",
          "companies_interested":"[{\"value\":7,\"label\":\"Test Company 4\"}]",
          "created_at":"2017-06-02 19:32:30",
          "updated_at":"2017-06-02 19:32:30",
          "deleted_at":null,
          "company":{
              "id":5,
              "name":"Test Company 3",
              "address":"Andheri",
              "city":"Mumbai",
              "state":null,
              "country":"India",
              "type":"Research-Tier II",
              "is_client":0,
              "created_at":"2017-06-02 14:48:20",
              "updated_at":"2017-06-02 14:48:20",
              "deleted_at":null
          }
      },
      {
          "id":3,
          "company_id":4,
          "salutation":"Mr",
          "first_name":"Check 1",
          "last_name":"Contact",
          "number":null,
          "email":"check1@contact.com",
          "alt_email":null,
          "address":null,
          "city":null,
          "state":null,
          "country":null,
          "profile":"Investor-Research Head",
          "sectors_interested":"[\"Economics\",\"Real Estate\",\"Auto\",\"Consumer\",\"Logistics\",\"Oil &amp; Gas\",\"Industrial\",\"Capital Goods\"]",
          "companies_interested":"[{\"value\":7,\"label\":\"Test Company 4\"},{\"value\":8,\"label\":\"Test Company 5\"}]",
          "created_at":"2017-06-03 06:28:03",
          "updated_at":"2017-06-03 06:28:03",
          "deleted_at":null,
          "company":{
              "id":4,
              "name":"Test Company 2",
              "address":"Chennai",
              "city":"Chennai",
              "state":null,
              "country":"India",
              "type":"Investor-Mutual Fund",
              "is_client":0,
              "created_at":"2017-06-02 06:42:16",
              "updated_at":"2017-06-02 15:32:17",
              "deleted_at":null
          }
      },
  ]
  }
  </code></pre>
  
  <p>So basically I'm getting this data set and trying to have filter in this, I defined the data set as <code>model: {}</code> in <code>data()</code> and I'm having a method as <code>fetchContactData()</code> which sets the data into <code>model</code> now after getting the response when I <code>console.log(this.model)</code> I get the object set like this:</p>
  
  <p><a href="https://i.stack.imgur.com/KOTGz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KOTGz.png" alt="enter image description here"></a></p>
  
  <p>but for filtering the data set is not getting:</p>
  
  <p>I've my filter functions in <code>computed</code> property</p>
  
  <pre><code>contacts: function() {
      if(this.model)
      {
          return this.model
               .filter(f =&gt; (f.company.is_client == 0))
              .map(d =&gt; ({label: d.name, value: d.id}))
      }
  },
  </code></pre>
  
  <p>But here this.model is not working I'm getting error of this</p>
  
  <blockquote>
    <p>Error in render function: "TypeError: this.model.filter is not a function"</p>
  </blockquote>
  
  <p>When I do <code>console.log(this.model)</code> before if statement, I get this:</p>
  
  <p><a href="https://i.stack.imgur.com/jKgqc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jKgqc.png" alt="enter image description here"></a></p>
  
  <p>If I do <code>console.log(this)</code> I can see the desired value being placed in model[!</p>
  
  <p><a href="https://i.stack.imgur.com/f7FBh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f7FBh.png" alt="enter image description here"></a></p>