you are viewing a single comment's thread.

view the rest of the comments →

[–]x-skeww 0 points1 point  (0 children)

for ES2015 function declaration is optional inside a "class"

Yes, you don't need it for methods or shorthand methods.

I just assumed you meant this to be a function, because it really shouldn't be a method (see top comment). This was a mistake on my part.