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! :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I wish I didn't need to know this... Nice and detailed article
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! :)