Courses / JavaScript
65. Object.entries()
Returns an array of a given object's own enumerable string-keyed property [key, value] pairs.
1 min read Chapter 65 of 99
JavaScript
Object.entries()
Object.entries() lets you convert an object into an array of its key-value pairs.
"I need to loop through an object's properties easily."
Object.entries() returns an array containing all of the object's own enumerable string-keyed property [key, value] pairs. This makes it simple to iterate over an object's properties.
"I need to loop through an object's properties easily."
Object.entries() returns an array containing all of the object's own enumerable string-keyed property [key, value] pairs. This makes it simple to iterate over an object's properties.