Does anyone know how to write an immediate function using ES6 arrow syntax?
Here\'s the ES3/5 way of doing it:
(function () { //... }()); <
(function () { //... }());
From the Arrow functions examples,
(() => "foobar")() // returns "foobar"
So, the function invocation operator should be outside.
(() => { //... })();
Sample: http://www.es6fiddle.net/hsb8s1sj/