I was looking into Firefox implementation of Arrow functions And noticed this
function a(){return 1,2};
a();
gives "2"
But with same with Arrow functions
a=()=>1,2;
a();
gives "1"
To get answer "2" in Arrow functions you need parentheses, like
a=()=>(1,2);
a();
Is this expected ?
Cheers
GC
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

