This isn't even that, I *think* what's happening is that the object and array are being coerced to a string and then compared. An empty array coerces to an empty string, while an empty object coerces to `[object Object]` which is, of course, greater than an empty string.

Reply to this note

Please Login to reply.

Discussion

yes, [ is a lower ascii than { so of course the value is lower

it's a lexicographic compare, and it would short circuit at the first byte i'd guess

this is one of the things i love about Go... they don't pollute mathematical notation with abstractions like this