title: Svelte 3 - How to loop each block X amount of times
body: <p>I'm hoping to find a way to iterate over an #each block a set amount of times in Svelte 3. In Vue I would do something like this:</p>
  <pre><code>&lt;li v-for=&quot;i in 3&quot;&gt;&lt;!-- somecontent --&gt;&lt;/li&gt;
  </code></pre>
  <p>But as I understand Svelte handles loops much differently using the .length property of the array being #eached. Is there some way to pull off something like this in Svelte?</p>
  <pre><code>{#each 3 as i}
    &lt;li&gt;&lt;!-- somecontent --&gt;&lt;/li&gt;
  {/if}
  </code></pre>