pop

Table of contents

Removes the last element from an array and returns array with remaining elements. If an integer is passed as argument, this amount of elements will be removed.

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

Need help?

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