title: js apply decorator to function in object
body: <pre><code>function decorator(target, key, descriptor) {
      console.log('decorated')
  }
  
  class User() {
      subscriptions: {
          @decorator
          function friends() {
          }
      }
  }
  </code></pre>
  
  <p>Is there some way so I can use a decorator on any function (e.g. in a property object of a class like above)?</p>