Shorter syntax for arrow function assignment

Brian Blakely at
Tue Oct 24 16:10:59 UTC 2017

A prevalent pattern has emerged:

`export const foo = ()=> { };`

Taking a cue from short method syntax, this comes to mind as a possible

`export const foo() { };`

Even better if we assume const:

`export foo() { };`

That is delicious.  Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list