{"action":"opened","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1454","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1454/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1454/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1454/events","html_url":"https://github.com/lodash/lodash/issues/1454","id":105833753,"number":1454,"title":"Doing an assign or merge assigns a string '[object Object]'","user":{"login":"iq-dot","id":3438620,"avatar_url":"https://avatars.githubusercontent.com/u/3438620?v=3","gravatar_id":"","url":"https://api.github.com/users/iq-dot","html_url":"https://github.com/iq-dot","followers_url":"https://api.github.com/users/iq-dot/followers","following_url":"https://api.github.com/users/iq-dot/following{/other_user}","gists_url":"https://api.github.com/users/iq-dot/gists{/gist_id}","starred_url":"https://api.github.com/users/iq-dot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iq-dot/subscriptions","organizations_url":"https://api.github.com/users/iq-dot/orgs","repos_url":"https://api.github.com/users/iq-dot/repos","events_url":"https://api.github.com/users/iq-dot/events{/privacy}","received_events_url":"https://api.github.com/users/iq-dot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T15:27:08Z","updated_at":"2015-09-10T15:27:08Z","closed_at":null,"body":"Hi guys,\r\n\r\nSo I have an issue where doing an _.assign or even a _.merge stores a literal string value of '[object Object]' instead of the actual object itself in an array.\r\n\r\nThis seems to happen on a NodeJS server using Lodash 3.10. (also happened with 3.7) However I can't replicate it on JSBin.\r\n\r\nExample:\r\n\r\n```\r\n// this is a mongoose object\r\nvar basket = {\r\n            \"shopping\" : {\r\n                \"fruits\" : {\r\n                    \"items\" : []\r\n                },\r\n                \"vegetables\" : {\r\n                    \"items\" : []\r\n                },\r\n                \"others\" : {\r\n                    \"items\" : []\r\n                }\r\n            }\r\n        };\r\n\r\n\r\nvar data = { \r\n  fruits: { items: [{ type: 'apple', colour: 'red' }] },\r\n  vegetables: { items: [] },\r\n  others: { items: [] } \r\n};\r\n\r\nvar result = _.assign(basket.shopping, data);\r\n\r\nconsole.log(result.shopping.items);\r\n// prints [\"[object Object]\"]\r\n// instead of [ {  type: 'apple', colour: 'red' } ]\r\n```\r\n\r\nAny idea whats going on?"}}