It seems so simple, but I cannot find out how to convert an Array filled with integers to an ArrayBuffer and back again to an Array. T
Array
ArrayBuffer
You can't use an ArrayBuffer directly, but you can create a typed array from a normal array by using the from method:
let typedArray = Int32Array.from([-2, -1, 0, 1, 2])