last Filter

Data Structure

Documentation

Outputs the last element in a sequence.

Variable

veggies = ['Tomatoes', 'Cucumbers', 'Peas']

Template

{{ veggies|last }}

Result

Peas

Did we get something wrong? Is there a use case for the last filter that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on April 14, 2020, 5:53 p.m. EST