JavaScript Object.fromEntries()

Tram Ho

As you all know, we can convert an object into an array by using Object.entries() or Object.values() . However, very few of you notice that js provides us a method to convert array → object, Object.fromEntries()

The syntax of Object.fromEntries() is quite simple.

Share the news now

Source : Viblo