O'Reilly logo
  • Handong Wang thinks this is interesting:

When you pass an argument to the next() method, that argument becomes the value of the yield statement inside a generator.

From

Cover of Understanding ECMAScript 6

Note

value of last yield expression