I need to iterate through an object and display values for each one while creating a string.
Any suggestions on how to achieve something like this:
const body = `
<h1>Values</h1>
${
for (value in values) {
return `<h2>Individual value: ${values[value].valueInt}</h2>`
}
}
`;
This is for the purpose of composing an email.