Skip to content
Log in

map - Liquid Filter Reference

On this page

Description

Creates an list of values by extracting the values of a named property from another object.

Property Value
Return Type list
Category lists

Examples

```liquid {% assign titles = pages | map: “title” %}

{% for item in titles -%} - {{ item }} {% endfor %} ```

Output: - Home\n- About Us\n- Privacy Policy

Was this article helpful?

Was this article helpful?