I have the following code that will bring me an indeterminate list; for example 5 items. I would like to return only the last item in the list.
for(var i = 0; i < data.list.length; i++){
if(Date.parse(data.list[i].date) >= dateA){
console.log(data.list[i].date);
}