Need to map array of objects. Keep getting “Cannot read property ‘map’ of undefined”.
survey.questions.map((question)=>{
console.log('the question: ',question);
})
survey json looks something like this…
[{
"questions": [{
"name": 0,
}, {
"name": 1,
},
{
"name": 3,
},
}]
}]