Explain how each blocks work a bit more

pull/4118/head
Josh Duff 6 years ago committed by GitHub
parent 1ef7601d69
commit f5aef4c618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 value 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