map - Liquid Filter Reference - 0.10.11

Filter Name map
Group Arrays
Version 0.10.11

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 Filter List

Back to Liquid Reference for 0.10.11

 

 
Back to Documentation