Hello !
Tell me how to check the passed argument belonging to a class "Pin" ?
function func(_pin) { if ( typeof (_pin)!=="Pin" /* the design code does not work */ ) { /* here some code */ } }
@Konkery 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.
Hello !
Tell me how to check the passed argument belonging to a class "Pin" ?