02-24-2022 15:04
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.
03-07-2022 11:05
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
02-25-2022 07:23
Hi @MarioDings
Are you developing an application using the Fitbit Web API or Fitbit Device SDK?
Gordon
03-06-2022 02:49
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.
03-07-2022 06:26
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
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.