Array.from(document.body.getElementsByTagName('*'))
.map(tag => tag.tagName)
.reduce((cur,next) => {
if(cur[next]) cur[next]++
else cur[next] = 1
return cur
}, {})
Array.from(document.body.getElementsByTagName('*'))
.map(tag => tag.tagName)
.reduce((cur,next) => {
if(cur[next]) cur[next]++
else cur[next] = 1
return cur
}, {})