pluck - Liquid Filter Reference - 1.0.0

Filter Name pluck
Group Collections
Version 1.0.0

Description

Plucks all values for a given property from an array of

Examples

When a string property is provided, it returns all the values from the collection for the provided property:
{{ products | pluck: "name" }}
Fridgetastic 3000Coldinator 500Geronimo 9000Y2K Amaze
When a variable property is provided, it returns all the values from the collection for the provided property:
{{ products | pluck: plucker }}
Fridgetastic 3000Coldinator 500Geronimo 9000Y2K Amaze

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation