# Includes is not a function

**URL:** <https://community.homey.app/t/includes-is-not-a-function/83320>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [June 27, 2023, 9:30am UTC](https://community.homey.app/t/includes-is-not-a-function/83320 "2023-06-27T09:30:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GD91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gd91/32/78099_2.png) [@GD91](https://community.homey.app/u/GD91)\
**Post date:** [June 27, 2023, 9:30am UTC](https://community.homey.app/t/includes-is-not-a-function/83320/1 "2023-06-27T09:30:14Z")

</div>

I’m writing some scripts for may Homey pro 2023.  
I’m trying to analyse the answer to a fetch commnand  
And, I struggle with the functions : a lot of them (includes, indexOf …) seems to be unavailable !

Probably, I’m doing Something wrong !!

Thank you for your help

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 27, 2023, 10:14am UTC](https://community.homey.app/t/includes-is-not-a-function/83320/2 "2023-06-27T10:14:54Z")

</div>

> [@GD91](#):
>
> Probably, I’m doing Something wrong !!

Yes, very likely. But since our crystal balls aren’t working today, perhaps you should post some of your code that is causing the errors.

---

<div class="post-metadata">

**Author:** ![GD91](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gd91/32/78099_2.png) [@GD91](https://community.homey.app/u/GD91)\
**Post date:** [June 28, 2023, 10:20am UTC](https://community.homey.app/t/includes-is-not-a-function/83320/3 "2023-06-28T10:20:19Z")

</div>

Finally, I understood the case !  
In fact, I tried to apply those functions to an object not of the string type !!
