resources: [{
id: staffId[0].id,
title: staffId[0].first_name
},
{
id: staffId[1].id,
title: staffId[1].first_name
},
...
]
]
Please help me to Write a for-loop in javascript to display the my array.