an class="p">)</span>
<span class="p">}</span>
</code></pre></div>
</div>
<p>Finally,
just as <code>function *</code> says &ldquo;this function is a generator&rdquo;,
<code>yield *</code> says &ldquo;yield the values from a nested generator one by one&rdquo;.
We can use it to walk irregular structures like nested arrays:</p>
<div class="code-sample lang-js" title="generator-tree.js">
<div class="highlight"><pre><span></span><code><span class="kd">function</span><span class="w"> </span><span class="o">*</spa