IFClite TypeScript API
    Preparing search index...

    Function canonicalValueKey

    • Comparison key for an opinion value: the same canonical form as @ifc-lite/ifcx uses for opinions (NFC strings, -0 as 0, sorted keys, object members holding undefined skipped). A top-level undefined (an attribute kept without a value) is distinct from a null removal, and values JSON cannot represent (non-finite numbers, bigint, functions, symbols) get tagged keys, so NaN never equals a removal. A Date compares by time. A value nested past MAX_KEY_DEPTH (or cyclic), or holding a non-plain object such as a Map or Set, compares by identity, so nothing throws.

      Parameters

      • value: unknown

      Returns string