Search
Use the Object.fromEntries() method to create an object fruit containing all the properties of the map fruitMap.
Object.fromEntries()
fruit
fruitMap
For example: