title: Smooth way to repeat DOM elements
body: <p>I'm interested in getting an array of identical (though distinct or cloned) DOM elements so I can use them like this:</p>
  
  <pre><code>parentElement.append(...arrayOfRepeatingElements);
  </code></pre>
  
  <p>The best I've come up with is:</p>
  
  <pre><code>[0,0,0].map(() =&gt; document.createElement('br'))
  </code></pre>
  
  <p>Or for larger numbers:</p>
  
  <pre><code>new Array(100).fill(0).map(() =&gt; document.createElement('br'))
  </code></pre>
  
  <p>Or slightly shorter:</p>
  
  <pre><code>[...'0'.repeat(100)].map(() =&gt; document.createElement('br'))
  </code></pre>
  
  <p>Is there an even cleaner/more semantic yet DRY and inlinable-as-an-expression way of doing this?</p>