Community Tip
- Learn all about the
Community Ranking System
, a fun gamification element of the PTC Community.
Whenever I attempt to use the '.includes()' method on string in ThingWorx composer, I always get an error saying that the .includes method can not be found on the object. I even log the type of the variable that I am trying to edit, just to make sure it is in fact a string. And I still can not get around this.
Here's an example of what I'm talking about:
var myString = 'I am trying to debug some crazy ThingWorx issues';
var myBoolean = myString.includes('ThingWorx');
*the above code will throw the error:
'TypeError: Cannot find function includes in object I am trying to debug some crazy ThingWorx issues. (GetProcessPartID#22)]'
But if I log 'typeof myString', it will log 'string'.
What gives?!