You can convert a typed array to a regular array using Array.prototype.slice
var typedArray = new Uint8ClampedArray([1, 2, 3, 4]); var normalArray = Array.prototype.slice.call(typedArray);
Also, if you use ES6, you can use Array.from instead:
var normalArray = Array.from(typedArray);
See MDN - Arrays Typed in JavaScript
Austin greco
source share