toBufferKey(-2.0321) will be greater than
toBufferKey(-2.04) as a binary representation, in left-to-right evaluation. This is particular useful for storing keys as binaries with something like LevelDB, to avoid any custom sorting.
The main module exports two functions:
toBufferKey(jsPrimitive) - This accepts a string, number, or boolean as the argument, and returns a
30, by setting the second argument to true (in which case it will return an array).