{#each items as item, i (typeof item === "number" ? item : `${item}-${i}`)} {#if typeof item === "number"} {:else} … {/if} {/each}