> Buffer also comes with additional caveats. For instance, Buffer#slice() creates a mutable segment linked to the original Buffer, while Uint8Array#slice() creates an immutable copy, resulting in possible unpredictable behavior.
I can see how the Buffer behavior here would be preferable in cases where performance is important or memory constrained environments.
Uint8Array has this too, but it's called `.subarray()`. The problem is that Buffer is a subclass of Uint8Array, but changes the behavior of the `.slice()` method.
I can see how the Buffer behavior here would be preferable in cases where performance is important or memory constrained environments.