I have an array of float32arrays, and want a function which flattens them into one large float 32array
const first = new Float32Array([1,2]);
const second = new Float32Array([3,4,5]);
const third = new Float32Array([6,7,8,9]);
const chunks = [first,second,third];
//this function should take an array of flaot32arrays
//and return a new float32array which is the combination of the float32arrays in the input.
const flattenFloat32 = (chunks) => {
//Need code for this function
return
}
console.log(flattenFloat32(chunks))