This commit is contained in:
parent
d81a68ffc6
commit
bbed681ca9
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 B |
@ -18,7 +18,8 @@ const renderItems = (items) => {
|
||||
return renderItems(item); // recurse into nested array
|
||||
} else if (typeof item === 'object') {
|
||||
return `<p>${Object.entries(item).map(([key, value]) =>
|
||||
`<strong>${key}:</strong> ${value}`).join('<br>')}</p>`;
|
||||
`${value}`).join('<br>')}</p>`;
|
||||
// `<strong>${key}:</strong> ${value}`).join('<br>')}</p>`;
|
||||
} else {
|
||||
return `<p>${String(item)}</p>`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user