Structural CBOR value equality.
dCBOR encoding is deterministic, so two CBOR values are equal iff they encode to the same byte sequence - this is the simplest correct comparator.
Use this rather than === (which compares JS object references) when you need value equality across two Cbor instances built independently.
===
Cbor
Structural CBOR value equality.
dCBOR encoding is deterministic, so two CBOR values are equal iff they encode to the same byte sequence - this is the simplest correct comparator.
Use this rather than
===(which compares JS object references) when you need value equality across twoCborinstances built independently.