type alias Deno.KvKeyPart
Unstable
UNSTABLE: New API, yet to be vetted.
A single part of a Deno.KvKey. Parts are ordered
lexicographically, first by their type, and within a given type by their
value.
The ordering of types is as follows:
Uint8Arraystringnumberbigintboolean
Within a given type, the ordering is as follows:
Uint8Arrayis ordered by the byte ordering of the arraystringis ordered by the byte ordering of the UTF-8 encoding of the stringnumberis ordered following this pattern:-NaN<-Infinity<-100.0<-1.0< -0.5<-0.0<0.0<0.5<1.0<100.0<Infinity<NaNbigintis ordered by mathematical ordering, with the largest negative number being the least first value, and the largest positive number being the last valuebooleanis ordered byfalse<true
This means that the part 1.0 (a number) is ordered before the part 2.0
(also a number), but is greater than the part 0n (a bigint), because
1.0 is a number and 0n is a bigint, and type ordering has precedence
over the ordering of values within a type.
Uint8Array
| string
| number
| bigint
| boolean
| symbol