// returns false
ArrayBuffer.isEquals(Uint8Array.of(0).buffer, undefined);
// returns false
ArrayBuffer.isEquals(Uint8Array.of(0).buffer, null);
// returns false
ArrayBuffer.isEquals(Uint8Array.of(0).buffer, Uint8Array.of(0, 1).buffer);
// returns true
ArrayBuffer.isEquals(Uint8Array.of(0).buffer, Uint8Array.of(0).buffer);
// returns true
ArrayBuffer.isEquals(
Uint32Array.from([Number.MAX_SAFE_INTEGER]).buffer,
Uint8Array.of(255, 255, 255, 255).buffer,
);
I think this can be presented in the next TC39 meeting.
@septs You might also like proposal-array-equality.