Not sure if it helps, but there's also Uint8ClampedArray now which makes sure that if you give it a number >255 it doesn't wrap. It's not significantly slower than Uint8Array either.
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.
Nice :)
Not sure if it helps, but there's also
Uint8ClampedArray
now which makes sure that if you give it a number >255 it doesn't wrap. It's not significantly slower thanUint8Array
either.