{#each value.slice(0, 3) as row} {#each row.slice(0, 3) as cell} {/each} {#if row.length > 3} {/if} {/each} {#if value.length > 3} {#each Array(Math.min(4, value[0].length)) as _} {/each} {/if}
{cell}...
...