This part of code only shows the first and second person in the database "Ban" status.
console.log("Banned0",res.data.data[0].banned); //display the first person banned status
console.log("Banned1",res.data.data[1].banned); //display the second person banned status
I would like to console.log all 5 person banned status without repeatedly using console.log.

res.data.map(item => console.log(item.data.banned))should do it. :)mapis meant to be used for. TryforEachorfor...of.res.data.forEach- Happy?