New Object Extensions

Object.entries, Object.values, Object.getOwnPropertyDescriptors

Check out the ES2016 plus compatibility table for more information on the current browser support. Most likely, you will need a transpiler.

Use the ES2017 Babel Preset for code transpilation if you want to support older browsers.

In this section, we will introduce three Object methods:

  • Object.entries
  • Object.values
  • Object.getOwnPropertyDescriptors

Let’s discuss each in detail in the following lessons.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.