I need help creating a function that can flatten multiple Float32Arrays into one large Float32Array
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];
//I am looking for a function that takes an array of Float32Arrays
//and returns a single Float32Array that combines all the arrays in the input.
const flattenFloat32 = (chunks) => {
//Code needed for this function
return
}
console.log(flattenFloat32(chunks))