Object.fromEntries

added by JavaScript Kicks
11/9/2018 3:50:27 AM

546 Views

The Object object has been buffed with useful methods over the past few years. Object.keys, Object.values, Object.freeze, and Object.assign all address frequently desired functionality. One of the new Object methods is fromEntries, which accepts a Map or map-like array nesting and converts it to a useful object literal!


0 comments