Encode a scalar identity without collapsing numeric and string values.
The type tag is part of the persisted identity: numeric 123 and string
"123" intentionally produce different keys. Numeric identities must be
finite; -0 is normalized to 0 because JavaScript treats them as the same
map identity.
Encode a scalar identity without collapsing numeric and string values.
The type tag is part of the persisted identity: numeric
123and string"123"intentionally produce different keys. Numeric identities must be finite;-0is normalized to0because JavaScript treats them as the same map identity.