Answers for "twig last"

0

twig last

{{ [1, 2, 3, 4]|last }}
{# outputs 4 #}

{{ { a: 1, b: 2, c: 3, d: 4 }|last }}
{# outputs 4 #}

{{ '1234'|last }}
{# outputs 4 #}
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language