var arr = { X:1, Y:2, Z:3 }; Object.keys(arr).map(key => { console.log(key, arr[key]) }) Run code snippet