Skip to main content

Function: last()

last(this, left): unknown

Return the last item of the input sequence. The input could be array-like, but not a string.

Parameters

this: FilterContext

An object containing a reference to the active render context and any keyword/named arguments.

left: unknown

Any value.

Returns

unknown

The last item in the input iterable, or null if the input value is not iterable.

Defined in

src/builtin/filters/array.ts:90