map
Creates a new array by extracting a specific property from each object in an array of objects.
Basic Usage
Creates an array of product titles from the collection.products array.
{% set product_titles = collection.products | map('title') %}
{{ product_titles | join(', ') }}
Output: Cool T-Shirt, Awesome Mug, Stylish Hat