ArrayBuffer as an array of numbers, create a Uint8Array over the buffer, then use Array.from() to convert it to an array.
The
Uint8Array class supports array indexing and iteration. To convert the instance to a regular Array, use Array.from(). This is likely slower than using the Uint8Array directly.
See Binary Data.