How can I ignore certain returned values from array destructuring? : <p>Can I avoid declaring a useless variable when array destructuring when I am only interested in array values beyond index 0?</p>

<p>In the following, I want to avoid declaring <code>a</code>, I am only interested in index 1 and beyond.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>// How can I avoid declaring "a"?
const [a, b, ...rest] = [1, 2, 3, 4, 5];

console.log(a, b, rest);</code></pre>
</div>
</div>
</p>
