# Function node limitations

**URL:** <https://forums.losant.com/t/function-node-limitations/3454>\
**Category:** Help\
**Tags:** workflow\
**Created:** [December 4, 2020, 8:09pm UTC](https://forums.losant.com/t/function-node-limitations/3454 "2020-12-04T20:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [December 4, 2020, 8:09pm UTC](https://forums.losant.com/t/function-node-limitations/3454/1 "2020-12-04T20:09:36Z")

</div>

Can I not use functions such as math.min and math.max in the function node?

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [December 4, 2020, 8:27pm UTC](https://forums.losant.com/t/function-node-limitations/3454/4 "2020-12-04T20:27:57Z")

</div>

@Lars_Andersson,

Yes, those functions are available in the Function Node. But, it’s going to be `Math.min()` not `math.min()` (capital). Here are the docs for reference:

> **[Math](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math)**
>
> Math is a built-in object that has properties and methods for mathematical constants and functions. It’s not a function object.

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [December 4, 2020, 8:53pm UTC](https://forums.losant.com/t/function-node-limitations/3454/5 "2020-12-04T20:53:38Z")

</div>

I tried that earlier, but just figured out that I had to use this syntax:

payload.data.min = Math.min.apply(Math,payload.data.timeSeries);

and not just payload.data.min = Math.min(payload.data.timeSeries);
