Skip to main content Accessibility Feedback



Return an array of key/value pairs from an object, also represented as arrays. Pass in the object as an argument.

let lunch = {
	sandwich: 'turkey',
	chips: 'cape cod',
	drink: 'soda'

// logs [["sandwich", "turkey"], ["chips", "cape cod"], ["drink", "soda"]]
let entries = Object.entries(lunch);

Join the Lean Web Club! Coaching. Courses. Coding resources. Get the skills, confidence, and support you need to learn front-end web development and achieve long-term success.

Find this useful? You can support my work by purchasing an annual membership.