What is the best solution to copy data from an typed Array (Uint8Array, ...) to an Array ?
Mozilla recommends Array.from(typedArray) or if .from is not available.
var typedArray = new Uint8Array([1, 2, 3, 4]),
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.
What is the best solution to copy data from an typed Array (Uint8Array, ...) to an Array ?
Mozilla recommends Array.from(typedArray) or if .from is not available.
var typedArray = new Uint8Array([1, 2, 3, 4]),
Both are not available on Espruino (yet?)
Copy data in a loop is very time (and memory ?) consuming.