Rick Waldron (2013-07-16T23:48:09.000Z)
domenic at domenicdenicola.com (2013-07-19T15:39:54.605Z)
On Tue, Jul 16, 2013 at 3:45 PM, David Bruant <bruant.d at gmail.com> wrote: > I have been thinking and with for..of, I can't find a good reason to use > .forEach instead of for..of. > for..of does what you need here with generators too. I've been looking at this example and thinking the same thing. Additionally, I'm curious to know what this would've looked like without being a contrived example of mis-used yield, considering Array.prototype.forEach returns undefined and the callback returns undefined as well (regardless of whether or not user code specifies a return).