map - Liquid Filter Reference - 1.0.0

Filter Name map
Group Arrays
Version 1.0.0

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 1.0.0

 

 
Back to Documentation