Closed lixiaofa-lab closed 1 year ago
Hey @lixiaofa-lab! Can you post the code that you tried, and I'll see if I can help debug?
Thank you. I was trying to convert the data from Float64Array(256) to a normal javaScript array, but MDN doesn't seem to have that way
You should be able to use Array.from
:
let typedArray = new Float64Array(256);
let normalArray = Array.from(typedArray);
Please do reopen this issue (or file another one) if you have any further trouble with the library :)
how to convert dtype: 'float64', data: Float64Array(256) into Array