DEV Community

Discussion on: Understanding Generators in Javascript - Javascript weekly

 
karataev profile image
Eugene Karataev

Conditions functions should exist somewhere. I think it's always possible to refactor the code and have access to these functions (for example, by moving the conditions functions higher in lexical scope).