Last time stamped value from array


I am using a exec block to fetch temperature and humidity from my verisure system. The output gives several timestamped values in return. I am only interested in the "newest / current" value. Is there some function I can use to filter out the latest temperature and humidity based on the time?

My flow:

The output:


Here's the documentation of JavaScript array. See if you find the way

1 Like

And remember that an array can also contain arrays!