pluck - Liquid Filter Reference - 0.11.6
Filter Name | pluck |
Group | Collections |
Version | 0.11.6 |
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 Liquid Reference for 0.11.6
Back to Documentation