s
sander
46 Joined 5 days ago
How to loop an `each` block a specific `x` number of times in Svelte?

The Svelte documentation for {#each} states The values in question can be arrays, array-like objects (i.e. anything with a length property)

So to loop an each statement a specific x number of times you would simply provide { length: x } as the array input....

1 vote Posted 1 day ago