{#each Array(3) as _, i}
{i} has foo: {!!foo[i]}
{/each}