pop
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.
Input:
{{ "John, Paul, George, Ringo" | split: ", " | pop | join: ", " }}
Output:
"John, Paul, George"
Input:
{{ "John, Paul, George, Ringo" | split: ", " | pop: 2 | join: ", " }}
Output:
"John, Paul"
, multiple selections available,
Related content
push
push
More like this
shift
shift
More like this
collection
collection
More like this
unshift
unshift
More like this
breadcrumbs
breadcrumbs
More like this
Filters
Filters
More like this