Hacker News new | ask | show | jobs
by jwdunne 3134 days ago
Since I last checked it was still experimental, albeit available in Babel, but there is work on syntax for property initialisers in class bodies e.g:

  class X {
    id = (x) => x;
  }
See here:

https://github.com/jeffmo/es-class-fields-and-static-propert...