Skip to content
Still using @dfinity/agent? Migrate to @icp-sdk/core!

compare

compare(u1, u2): number

Defined in: packages/candid/src/utils/buffer.ts:189

Uint8Array

uint8Array 1

Uint8Array

uint8Array 2

number

number - negative if u1 < u2, positive if u1 > u2, 0 if u1 === u2