0
Hello, I have a code where I am searching a list of dates.
for(var i = 0; i < data.list.length; i++){
if(Date.parse(data.list[i].date) >= dateA){
console.log(data.list[i].date)
}
}
i wonder if there is possibility to return only the last date of the array.
For any array, the last element can be accessed using
minhaArray[minhaArray.length - 1]
– nbkhope