That's great! So that works for you on ESP8266?
Personally I'd just #ifdef ESP8266 and access by word all the time (it'll be faster than checking if you're using a native string!).
#ifdef ESP8266
@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.
That's great! So that works for you on ESP8266?
Personally I'd just
#ifdef ESP8266
and access by word all the time (it'll be faster than checking if you're using a native string!).