Skip to content
Log in

shift - Liquid Filter Reference

On this page

Description

Removes the first item from an list

Property Value
Return Type any
Category lists

Examples

liquid Removed: {{ my_list | first }} Now have: {{ my_list | shift | join: ", " }}

Output: Removed: 1\nNow have: 2, 3, 4, 5

Was this article helpful?

Was this article helpful?