Instanceof does work. I would advice against typeof because its not precise enough.
Just my 2¢ :)
© Espruino, powered by microcosm.
Report a problem