title: Is this valid syntax for defining methods in Vue.js?
body: <p>I have been defining methods this way in my Vue app:</p>
  
  <pre><code>methods: {
    myMethod(arg) {
      // do stuff
    }
  }
  </code></pre>
  
  <p>This is the way you typically see it:</p>
  
  <pre><code>methods: {
    myMethod: function (arg) {
      // do stuff
    }
  }
  </code></pre>
  
  <p>My way looks a little cleaner, and both ways to work fine, but am I committing a great JS sin here? Will this come back to bite me somehow?</p>