How to convert a Map to an Array in JavaScript?
Originally Published Here ๐!
To convert the Map data structure to an Array, you can use the from() method from the global Array object in JavaScript.
TL;DR
// Initialise Map to hold roll number
// associated with students name
const rollNumToName = ...
melvingeorge-me.hashnode.dev2 min read