I think you could probably repurpose Array.slice?
Array.slice
[].slice.call(uint8array,0)
That'll probably be about as speedy and clean as you can get?
@Gordon 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.
I think you could probably repurpose
Array.slice
?That'll probably be about as speedy and clean as you can get?