I want to iterate over the data and place the resulting objects in an array in the "data" array. With this implementation, I get a syntax error. What am I doing wrong? Is my approach correct?
const data = [
dictionary.map(item => {
{
key: item.id,
engword: item.title,
rusword: item.body,
tags: 'beginner',
}
})
];