$( "li" ).last().css( "background-color", "red" );
var array = [1,2,3,4]; var lastEl = array.last();
jq '.[-1]'