How to get ID from array of objects in JavaScript?

How to get ID from array of objects in JavaScript?