-
• #2
I'm afraid
Number.isInteger
isn't in Espruino, but you can fake it with this I believe:Number.isInteger = it => isFinite(it) && Math.floor(it) === it;
I'm afraid Number.isInteger
isn't in Espruino, but you can fake it with this I believe:
Number.isInteger = it => isFinite(it) && Math.floor(it) === it;
I ran into an issue where I cannot access a method of Number called isInteger..
Running the following code returns
Uncaught Error: Function "isInteger" not found!
::How can I install the Number class into my Bangle.js? Is there any way to fix this?