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

pull/7738/head
Josh Duff 6 years ago committed by Conduitry
parent db578d1fb5
commit 1d24f4f95e

@ -205,6 +205,8 @@ Iterating over lists of values can be done with an each block.
</ul> </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: An each block can also specify an *index*, equivalent to the second argument in an `array.map(...)` callback:

Loading…
Cancel
Save