thank you for the reply :). I've sidestepped the issue for now by using a large random number and toString(36) with it. Is it a better practice in general to check if a key exists with "in" instead of "hasOwnProperty"? Is this both the case for normal javascript as well as espruino?
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.
Hi Gordon,
thank you for the reply :). I've sidestepped the issue for now by using a large random number and toString(36) with it. Is it a better practice in general to check if a key exists with "in" instead of "hasOwnProperty"? Is this both the case for normal javascript as well as espruino?
Regards,
Alex