arrow function syntax simplified

Kevin Smith khs4473 at
Sun Apr 8 16:09:15 PDT 2012

Which form has more brevity, then?

    // This?
    var withCircleUtilsFat = () => { ... };

    // Or this?
    function withCircleUtilsFat() { ... };

In any case, between object literal methods and arrow functions, I think
you'll find that the vast majority of your function expressions will get a
more concise syntax.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list