I have an array with defined and null values inside, like so :
var arr = [
{...},
null,
null,
{...},
null
];
Is there any way for me to get the index of the last non-null element from this array? And I mean without having to loop through it entirely.