Skip to content

Glossary: JavaScript Beyond the Basics

Object.entries / Object.fromEntries

Also written: Object.entries, Object.fromEntries

`Object.entries(obj)` turns an object into an array of `[key, value]` pairs, and `Object.fromEntries(pairs)` turns pairs (or a Map) back into a plain object.

Where the book teaches it

Related terms

DestructuringMap / Set