shift

Table of contents

Removes the first element of an array (shifting all other elements down by one). Returns array with remaining elements. If an integer is passed as argument, this amount of elements will be removed.

{{ "John, Paul, George, Ringo" | split: ", " | shift | join: ", " }}
Input
"Paul, George, Ringo"
Output
{{ "John, Paul, George, Ringo" | split: ", " | shift: 2 | join: ", " }}
Input
"George, Ringo"
Output

Need help?

Do you have any question which is not answered in this knowledge base? Contact us. We are here to help you.