Skip to content
Advertisement

How to convert Map key values into array in JavaScript

I have a Map that contains keys and their value. I want to convert all keyvalues into an array

JavaScript

I want that my new array should look like this

JavaScript

Advertisement

Answer

this will do

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement