{
const data = [
{x:1, type:'a'},
{x:2, type:'a'},
{x:1, type:'b'},
{x:2, type:'b'},
{x:3, type:'b'},
]
const div = document.createElement("div")
const a = document.createElement("div")
const b = document.createElement("div")
div.appendChild(a)
div.appendChild(b)
a.appendChild(html`<span>Type a: </span>`)
b.appendChild(html`<span>Type b: </span>`)
data.forEach(function(x) {
if (x.type === 'a') a.appendChild(html`${monster}`)
if (x.type === 'b') b.appendChild(html`${monster2}`)
})
return div
}