The second point in this magnificent answer explains what happens when you "add together" an array and an object.
var result = [] + {}; console.log(result); console.log(typeof result);
1.4m articles
1.4m replys
5 comments
57.0k users