# Last time stamped value from array

**URL:** https://discourse.nodered.org/t/last-time-stamped-value-from-array/9099
**Category:** General
**Created:** [17 March 2019 17:19 UTC](https://discourse.nodered.org/t/last-time-stamped-value-from-array/9099 "2019-03-17T17:19:51Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![stibra](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@stibra](https://discourse.nodered.org/u/stibra)
#### Post date: [17 March 2019 17:19 UTC](https://discourse.nodered.org/t/last-time-stamped-value-from-array/9099/1 "2019-03-17T17:19:51Z")

</div>

Hi,

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:

 ![vsureflow1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c98e94bf2bfdb1b83b5d2907dec97e6903b73e14.png)

The output:

 ![output](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0ff0182c8c5633f2317c97e0b3f30d2cbbf4919a.png)

br  
Stian

---

_[View the full topic](https://discourse.nodered.org/t/last-time-stamped-value-from-array/9099)._
