Map Lookups

Maps
πŸ‘¨β€πŸ’Ό We need fast lookups by user ID, and Map is perfect for that.
🐨 Open
index.ts
and:
  1. Create a Map from the users array
  2. Read a user from the map by ID
  3. Check whether a missing ID exists
πŸ“œ MDN - Map

Please set the playground first

Loading "Map Lookups"
Loading "Map Lookups"