10 Utility Functions for Working with Objects in JavaScript
Briefly

Object.entries() returns an array of [key, value] pairs for all the owned properties of an object. Once we have all the [key, value] pairs in an array, we can use array methods like forEach to iterate through and manipulate the object properties.
To create a deep-freeze utility for objects, we utilize recursion, Object.entries to get key-value pairs, and Object.freeze. By iterating through the properties and recursively freezing nested objects, we can prevent any further modifications to the object.
When converting objects into maps, Object.entries combined with the Map constructor helps transform the object into a map structure, which can be useful for certain operations that maps facilitate.
Read at Medium
[
]
[
|
]