title: How to get computed property data in method in Vue js?
body: <p>I have a computed property</p>
  
  <pre><code> computed: {
      totalwishlistItems () {
        const totalwishlistItems = this.items
        const totalreversedItems = totalwishlistItems.map((item, index) =&gt; totalwishlistItems[totalwishlistItems.length - 1 - index])
        return totalreversedItems.length
      }
  }
  </code></pre>
  
  <p>And i want this <code>totalwishlistItems</code> data in a method</p>
  
  <pre><code>methods : {
  getPosts () {
        for (let i = 0; i &lt; this.totalwishlistItems; i++) {
          this.posts.push({first: 'John',
            last: 'Doe',
            suffix: '#' + i})
        }
      }
  }
  </code></pre>
  
  <p>How can i get value of computed data in method in Vue js ?</p>