Yifeng RuanHow to Use a Generator Function as a ConstructorGenerator function is a powerful feature of ECMAScript 2015 (aka ES6), but you cannot use it as a constructor.May 11, 20164May 11, 20164