Or you can do if ("bar" in test) ... which is a bit faster/easier.
if ("bar" in test) ...
At the moment this is a frustrating issue - but it's surprising how rarely it's actually a problem if your code is working as expected.
@Gordon started
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.
Or you can do
if ("bar" in test) ...
which is a bit faster/easier.At the moment this is a frustrating issue - but it's surprising how rarely it's actually a problem if your code is working as expected.