You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ECMAScript 6, there is support for generator functions in the following form:
function* generate() {
yield 1;
yield 2;
}
or
var generate = function* () {
yield 1;
yield 2;
}
Unless I'm mistaken, there isn't a way to prevent a space from being inserted between function and *, which is what I would like to have.
Ideally, this would be an option so that users can choose between function* name() {}, function *name() {}, function*name() {}, and function * name() {} - though I prefer the former.
Along these lines, unnamed function expressions should be supported in a similar fashion, i.e. function* () {}, function*() {}, function *() {}, function * () {}.
The text was updated successfully, but these errors were encountered:
In ECMAScript 6, there is support for generator functions in the following form:
or
Unless I'm mistaken, there isn't a way to prevent a space from being inserted between
function
and*
, which is what I would like to have.Ideally, this would be an option so that users can choose between
function* name() {}
,function *name() {}
,function*name() {}
, andfunction * name() {}
- though I prefer the former.Along these lines, unnamed function expressions should be supported in a similar fashion, i.e.
function* () {}
,function*() {}
,function *() {}
,function * () {}
.The text was updated successfully, but these errors were encountered: