From the Arrow functions examples,
(() => "foobar")() // returns "foobar"
So, the function invocation operator should be outside.
(() => {
//...
})();
Sample: http://www.es6fiddle.net/hsb8s1sj/
From the Arrow functions examples,
(() => "foobar")() // returns "foobar"
So, the function invocation operator should be outside.
(() => {
//...
})();
Sample: http://www.es6fiddle.net/hsb8s1sj/