Files
liquid/_filters/last.md
2015-07-25 17:09:54 -04:00

393 B

title
title
last

Return the last element of an array.

Code Output
{% raw %}`{{ product.tags last }}`{% endraw %}

In the sample above, assume that product.tags resolves to: ["sale", "mens", "womens", "awesome"].