Object.values & Object.entries

We'll learn about object methods such as 'Object.values' and 'Object.entries', that are both just as powerful as 'Object.keys'. We'll see how they make our lives a little easier when working with the data contained in objects.

Object.values and Object.entries work similar to Object.keys. Furthermore, these two methods are ES2017 functions.

Object.values

Instead of returning the keys of an object as an array, this function will return the values.

Get hands-on with 1000+ tech skills courses.