getNamesHtml
Script
v13
Fork
1
2
3
4
5
6
import
{
names
as
names2
}
from
"https://esm.town/v/chad/names"
;
export
function
getNamesHtml
(
req
,
res
)
{
const
names
=
names2
.
map
(
(
{
name
}
)
=>
`<div>
${
name
}
</div>`
)
;
res
.
send
(
names
.
join
(
""
)
)
;
}