Bun
File SystemBinary Data

Convert an ArrayBuffer to an array of numbers

To retrieve the contents of an ArrayBuffer as an array of numbers, create a Uint8Array over the buffer, then use Array.from() to convert it to an array.