yield without a value has been deprecated

Published: | Categories: JavaScript

Description

The yield operator now cannot be used without an operand (its value). This change has been made to comply with the ECMAScript 6 spec, and you’ll see a warning in the Web Console if no value is specified in your code. You can just use yield undefined instead if there’s no specific value to return.

References