how to yield multiple constants with one declaration
<p>I have a function <code>makeThings(n)</code> that returns a Promise to create n number of items (through Sequelize).</p>

<p>It was suggested to me to use this format for retrieving values:</p>

<p><code>const [thing1, thing2] = yield makeThings(2);</code></p>

<p>I can't find anything on the internet about assigning constants/variables in this way. Have you seen this? How does it work? My machine doesn't like it and spits out an unexpected token "[" error.</p>

<p>Maybe it might be a npm package that I don't know about?</p>

<p>Using Node.js 5.1.0, ES6</p>