title: How to populate empty array with a method in Vue
body: <p>I'm trying to populate an empty array with a declared array variable in a <code>computed</code> function. I tried this but with no luck:</p>
  
  <pre><code>data: {
    hashtags: []
  },
  
  computed: {
    filteredHashtags () {
      var defaultHashtags = [ '#hr', '#acc', '#sales' ];
  
      var fHashtags = 
       _.chain( messages )
      .pluck( 'hashtags' )
      .flatten()
      .map( 
        function ( tag ) { 
          return tag &amp;&amp; tag.trim() ? '#' + tag : null; })
      .filter( Boolean )
      .value();  
  
      fHashtags = _.union( fHashtags, defaultHashtags );
  
      return data.hashtags = fHashtags;
    }
  }
  </code></pre>
  
  <p>also, is there a better method to approach this?</p>