title: Can I yield from an inner function?
body: <p>With ES6 generators, I see code like this:</p>
  
  <pre><code>var trivialGenerator = function *(array) {
      var i,item;
      for(var i=0; i &lt; array.length; i++){
          item = array[i];
          yield item;
      };
  };
  </code></pre>
  
  <p>Is it possible to write something more like the code below instead?</p>
  
  <pre><code>var trivialGenerator = function *(array) {
      array.forEach(function *(item){
          yield item;
      });
  };
  </code></pre>
  
  <p>I'm asking because the classic <code>for</code> loop is an abomination.</p>