Convert Uint8Array to Array in Javascript
You can use the following in environments that support Array.from
already (ES6)
var array = Array.from(uint8Array)
When that is not supported you can use
var array = [].slice.call(uint8Array)
You can use the following in environments that support Array.from
already (ES6)
var array = Array.from(uint8Array)
When that is not supported you can use
var array = [].slice.call(uint8Array)