site: Explain how each blocks work a bit more ()

pull/4243/head
Josh Duff 5 years ago committed by Conduitry
parent 20dedc6cb8
commit 00e39c767a

@ -205,6 +205,8 @@ Iterating over lists of values can be done with an each block.
</ul>
```
You can use each blocks to iterate over any array or array-like value — that is, any object with a `length` property.
---
An each block can also specify an *index*, equivalent to the second argument in an `array.map(...)` callback:

Loading…
Cancel
Save