Liquid Filter Reference for pluck - v0.9.5

Filter Name pluck
Group Collections
Version 0.9.5

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 0.9.5

 

 
Back to Documentation