Its String.includes and Espruino doesn't support it i guess, at least it is not listed in the reference.
But a good alternative would be indexOf and check for a return value greater -1 .
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Its String.includes and Espruino doesn't support it i guess, at least it is not listed in the reference.
But a good alternative would be indexOf and check for a return value greater -1 .