The Basics Of ES6 Generators

added by JavaScript Kicks
3/21/2015 3:05:29 PM


One of the most exciting new features coming in JavaScript ES6 is a new breed of function, called a generator. The name is a little strange, but the behavior may seem a lot stranger at first glance. This article aims to explain the basics of how they work, and build you up to understanding why they are so powerful for the future of JS.