What does `return function *(){…}` mean? [duplicate]

It means that the function returns an iterator (so it can be repeatedly called with .next() to yield more values.

check out http://wingolog.org/archives/2013/05/08/generators-in-v8 for more info

It’s an ES6 construct, so at the moment you see it more in node rather than client side js

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)