From 1d24f4f95e789f4e302ec2908f262713979f2567 Mon Sep 17 00:00:00 2001 From: Josh Duff Date: Mon, 6 Jan 2020 16:59:31 -0600 Subject: [PATCH] site: Explain how each blocks work a bit more (#4118) --- site/content/docs/02-template-syntax.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index b069c8abc0..1496d18ffc 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -205,6 +205,8 @@ Iterating over lists of values can be done with an each block. ``` +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: