02-24-2022 15:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


02-24-2022 15:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Just got a message: Unhandled exception: TypeError: Expected a function.
on: if ( !bestandenlijst.includes(file) ) doThis();
file="2.png"
bestandenlijst = ["1.png","2.png", "3.png","4.png","5.png"]
Doesnt fitbit understand the function includes()
Fitbit: Versa, Versa2, Sense. (Versa light) - Phone: Android. - Developer clockfaces.(Nederlands)
Answered! Go to the Best Answer.

- Labels:
-
JavaScript
Accepted Solutions
03-07-2022 11:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-07-2022 11:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Fitbit only supports everything in ES5.1, with some extensions. I think .includes() may have been introduced into JS after ES5.1.
Gondwana Software
02-25-2022 07:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-25-2022 07:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @MarioDings
Are you developing an application using the Fitbit Web API or Fitbit Device SDK?
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

03-06-2022 02:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-06-2022 02:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Gordon,
I use the Fitbit Device SDK (Studio)
I'm autodidact, so I try everything I find in a diversity of courses.
Also tried console.table(..) but that is not documented, so no problem.
Fitbit: Versa, Versa2, Sense. (Versa light) - Phone: Android. - Developer clockfaces.(Nederlands)

03-07-2022 06:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-07-2022 06:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thank you for clarifying. I'm moving this post to the SDK community. Someone there should be able to help you.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
03-07-2022 11:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-07-2022 11:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Fitbit only supports everything in ES5.1, with some extensions. I think .includes() may have been introduced into JS after ES5.1.
Gondwana Software
