I have some codes
var weibo = { weibo: { url: '//testurl.com', icon: 'fa fa-weibo' } }
var mail = { mail: { url: '//testurl.com', icon: 'fa fa-envelope' } }
var github = { github: { url: '//testurl.com', icon: 'fa fa-github' } }
var [key] = Object.keys(weibo)
var name = weibo[key]
console.log(weibo[key])
I want to get object from weibo and store into name variable
But name show [object object]
I am not use alert from What does [object Object] mean? (JavaScript)
I just want to store variable into name, why chrome dev tools show [object object]?
console.log() works, it show corrent object info

Update please see my gif


