Message from JavaScript discussions

August 2017

— Holy shit

— 

Yo people can somebody explain what yield is really for? Any use case because I don't really get what the documentation means by generator

— Wtf is that elseif cascade shit https://gist.github.com/anonymous/ad2c50ca3acc36f04dfd83bf8ca26195

— Found in a little part of that famous class

— Returning multiple values

— Generators are for creating for example infinite lists

— Or a list of values that are computed sequentially

— I am so confused about this RegExp

— It's like getting cast to some other data type after being accessed with bracket notation

— It is an object... And then it's not

— Weird

— Can you make a simple example?