Search
Use the Object.entries() method to convert the fruit object to a map.
Object.entries()
fruit
For example: