title: Vue JS Filter for Title Case
body: <p>I am absolutely new to Vue JS so please forgive me if my question sounds dumb.</p>
  
  <p>I am learning to create string filters in Vue JS. I was able to convert my string to uppercase using following code.</p>
  
  <pre class="lang-js prettyprint-override"><code>var app=new Vue({
      el:'#app',
      data:{
          message:'hello world',
      },
      filters:{
          uppercase(value){
              return value.toUpperCase();
          },
      }
  })
  </code></pre>
  
  <p>Now I am trying to make a filter to convert my message to Title Case. eg. <code>hello world</code> to <code>Hello World</code></p>
  
  <p>I have tried many things like:</p>
  
  <pre class="lang-js prettyprint-override"><code>filters:{
      upper(value){
          value.toLowerCase().split(' ');
          return value.charAt(0).toUpperCase()+value.slice(1);
      }
  }
  </code></pre>
  
  <p>But I am unable to create a filter correctly. How can we use a for loop inside Vue JS? Or is there any other way to accomplish the Title Case?</p>