title: Using a function's argument in an object - Vue.js
body: <p>I am trying to use type instead of 'data' in the following example, to keep it dynamic, but I have no idea how to do so, could anyone possibly advice on what to do in this case?</p>
  <p>Thank you!</p>
  <p>I have:</p>
  <pre><code>    alreadyHas: function(type) {
          return this.dropdownPlan.data.id === this.currentPlan.data.id
      },
  </code></pre>
  <p>I want:</p>
  <pre><code>    alreadyHas: function(type) {
          return this.dropdownPlan.type.id === this.currentPlan.type.id
      },
  </code></pre>