map - Liquid Filter Reference - 0.11.4
Filter Name | map |
Group | Arrays |
Version | 0.11.4 |
Description
Creates an array of values by extracting the values of a named property from another object.
Examples
{% assign titles = pages | map: "title" %}
{% for item in titles -%}
- {{ item }}
{% endfor %}
- Home
- About Us
- Privacy Policy
Back to Liquid Reference for 0.11.4
Back to Documentation