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:
An #each tag can loop anything with a length property, so:
#each
{#each {length: 3} as _, i} <li>{i + 1}</li> {/each}
will also work, if you prefer.
You can use {#each ...}, like:
{#each ...}
{#each Array(3) as _, i} <li>{i + 1}</li> {/each}