Skip to content

Instantly share code, notes, and snippets.

@kimbo-slicee
Last active September 16, 2025 18:51
Show Gist options
  • Select an option

  • Save kimbo-slicee/68f02e87d7f5c9d33c3e48cb1ebc3a5a to your computer and use it in GitHub Desktop.

Select an option

Save kimbo-slicee/68f02e87d7f5c9d33c3e48cb1ebc3a5a to your computer and use it in GitHub Desktop.
Feature Set Map
Purpose Stores unique values Stores key–value pairs
Duplicate values? ❌ Not allowed ✅ Keys must be unique, but values can repeat
Access by key ❌ No keys, only values ✅ Direct access via key
Order guaranteed? ✅ Insertion order preserved ✅ Insertion order preserved
Data type allowed Any type (object, number, etc.), but only values Any type for both keys and values
Useful for Deduplication, quick existence checks Dictionaries, lookups, caching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment