How do I detect type of an object ?
For example var x = new SPI()
X returns SPI: { }, so in web IDE(only in web IDE) I see its an SPI object
typeof x returns ="object"
Is there any JS command, something like objectType, which returns "SPI"
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.
How do I detect type of an object ?
For example var x = new SPI()
X returns SPI: { }, so in web IDE(only in web IDE) I see its an SPI object
typeof x returns ="object"
Is there any JS command, something like objectType, which returns "SPI"