Object.entries()
HTML
<script src=" https://getfirebug.com/firebug-lite-debug.js"></script>
Babel + JSX
var obj1 = { 0: 'a', 1: 'b', 2: 'c' };
console.log(Object.entries(obj)); // [ ['0', 'a'], ['1', 'b'], ['2', 'c'] ]
var obj = {
Response: {
Errors: {
Check: {
ReportingCategoryLabel: [
"Line No 4 [Missing Category Report]",
"Line No 4 [Missing Category Report 1]",
"Line No 4 [Missing Category Report 2]",
"Line No 4 [Missing Category Report 3]",
"Line No 4 [Missing Category Report 4]"
],
_id: "223",
_name: "error1234"
}
},
Success: {
Check: {
_id: "223",
_name: "success1234"
}
}
}
}
Object.values(obj).map((type) => {
console.log(type)
return (
<p>Type of phone: {type}</p>
)
})