← Back to release summary

Object.entries() and Object.values()

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 54)
Intent stage
None

Summary

These methods are siblings to the Object.keys() function, and aim to provide Objects with the same set of iteration methods that exist for other ES2015 types (Array, Map, and Set).

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values

View on chromestatus.com