What is Map? Map is a collection of keyed data items, just like an Object. But the main difference is that Map allows keys of any type. Example const userMap = new Map(); userMap.set('name', 'Rocky');
debunking-js.hashnode.dev4 min read
No responses yet.