Yes, there is - just ensure you have the "ram" keyword at the front of the function and Espruino will pretokenise it and remove whitespace. It won't exactly minify (renaming vars) because there is no minifier in Espruino, but it will really help.
Either that or for the kind of code you have there in the interval you could even add "jit" to it to compile it to native code.
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.
Yes, there is - just ensure you have the
"ram"
keyword at the front of the function and Espruino will pretokenise it and remove whitespace. It won't exactly minify (renaming vars) because there is no minifier in Espruino, but it will really help.Either that or for the kind of code you have there in the interval you could even add
"jit"
to it to compile it to native code.