DEV Community

Discussion on: Why Is {} > [] ?

Collapse
 
amyshackles profile image
Amy Shackles

I actually totally neglected to explain why an empty object would evaluate to "[object Object]" while an empty array, while still being an object, would evaluate to an empty string. I've since cut out a lot of the repetition and answered that lingering question. Hope it helps! :)