# TypeError: key.startsWith is not a function

**URL:** https://discourse.nodered.org/t/typeerror-key-startswith-is-not-a-function/40086
**Category:** General
**Created:** [31 January 2021 04:21 UTC](https://discourse.nodered.org/t/typeerror-key-startswith-is-not-a-function/40086 "2021-01-31T04:21:11Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [31 January 2021 07:36 UTC](https://discourse.nodered.org/t/typeerror-key-startswith-is-not-a-function/40086/3 "2021-01-31T07:36:41Z")

</div>

Hi @NURULSYIFA98,  
Can you share (i.e. export) a "simple" flow with a function node, and an inject node (which injects an example message that causes the error). That makes it easy for us to help people.

BTW if you need to implement multiple function nodes, it might be worth to learn debugging your function node code. You can do that very easily as described [here](https://discourse.nodered.org/t/debug-js-code-inside-function-node/26925/14).

Thanks!  
Bart

---

_[View the full topic](https://discourse.nodered.org/t/typeerror-key-startswith-is-not-a-function/40086)._
