Fix map example output

This commit is contained in:
Alexander Schranz
2022-01-14 12:53:45 +01:00
committed by GitHub
parent 9984a6ee55
commit 97411730ab
+1 -1
View File
@@ -27,7 +27,7 @@ The arrow function also receives the key as a second argument:
"Alice": "Dupond",
} %}
{{ people|map((value, key) => "#{value} #{key}")|join(', ') }}
{{ people|map((value, key) => "#{key} #{value}")|join(', ') }}
{# outputs Bob Smith, Alice Dupond #}
Note that the arrow function has access to the current context.