02-24-2022 15:04
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
02-24-2022 15:04
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()
Answered! Go to the Best Answer.
Best Answer03-07-2022 11:05
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
03-07-2022 11:05
Fitbit only supports everything in ES5.1, with some extensions. I think .includes() may have been introduced into JS after ES5.1.
02-25-2022 07:23
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
02-25-2022 07:23
Hi @MarioDings
Are you developing an application using the Fitbit Web API or Fitbit Device SDK?
Gordon
Best Answer03-06-2022 02:49
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
03-06-2022 02:49
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.
Best Answer03-07-2022 06:26
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-07-2022 06:26
Thank you for clarifying. I'm moving this post to the SDK community. Someone there should be able to help you.
Gordon
03-07-2022 11:05
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
03-07-2022 11:05
Fitbit only supports everything in ES5.1, with some extensions. I think .includes() may have been introduced into JS after ES5.1.