Skip to content

Instantly share code, notes, and snippets.

@deleteman
Last active August 26, 2021 05:29
Show Gist options
  • Save deleteman/22f0a2bbb1ee6cc75e2b0b8f48346ed6 to your computer and use it in GitHub Desktop.
Save deleteman/22f0a2bbb1ee6cc75e2b0b8f48346ed6 to your computer and use it in GitHub Desktop.
let obj = {}
obj[Symbol.for('unique_prop')] = 10;
console.log(obj[Symbol.for('unique_prop')]); //This will print 10!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment