Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
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 AnswerFitbit only supports everything in ES5.1, with some extensions. I think .includes() may have been introduced into JS after ES5.1.
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.
Hi @MarioDings
Are you developing an application using the Fitbit Web API or Fitbit Device SDK?
Gordon
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
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 Answer
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.
Thank you for clarifying. I'm moving this post to the SDK community. Someone there should be able to help you.
Gordon