title: How do I fill a new array with n distinct empty arrays, in a concise one-line initialization statement?
body: <p>Here is where I am stuck.   I want to take this statement and revise it in a manner that the empty array I fill (which I surmise might not work with dynamic values), will initialize bucket to the n distinct empty arrays.</p>
  <p>How do I do this?   Is there a way to make this fill method behave in the intended manner?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let radix = 10;
  let badBucket = [...Array(radix).fill([])];
  let goodBucket = JSON.parse(JSON.stringify([...Array(radix).fill([])]));
  badBucket[3].push(33);
  goodBucket[3].push(33);
  console.log(JSON.stringify(badBucket));
  console.log(JSON.stringify(goodBucket));</code></pre>
  </div>
  </div>
  </p>