map: is there any way we can add keys to an array which is based on its values

I have the following Map:

'1st key' => [{'name': 'apple'}, {'other': 'orange'}],
'2nd key' => [{'name': 'mango'}, {'other': 'lemon'}]
    

I want to cenvert this map to a new array and also add keys.

Array.from(map.values()) converts values to array, es expected, but I want to add keys as attributes…

Expected result:

 [ {'id': '1st key'}, {'name': 'apple'}, {'other': 'orange'}]
 [ {'id': '2nd key'}, {'name': 'mango'}, {'other': 'lemon'}]