Create ArrayBuffer from Array (holding integers) and back again
Yes, there’s a simple way without manually writing a loop (the loop still exists somewhere in background): new Uint16Array([1,2,3]); That’s all. Of course, floating numbers will be rounded down and big numbers will overflow. Converting typed array to buffer The buffer of any typed array is accessible through .buffer property, as anyone can read on … Read more