What are typed arrays?

Typed arrays provide a way to handle binary data efficiently. They are used in operations requiring performance, like manipulating image pixels, video streams, or raw data from networks or files.

const buffer = new ArrayBuffer(8);
const view = new Int32Array(buffer);
view[0] = 10;