Skip to content

Instantly share code, notes, and snippets.

@chrislaughlin
Created February 1, 2014 11:30
Show Gist options
  • Save chrislaughlin/8751068 to your computer and use it in GitHub Desktop.
Save chrislaughlin/8751068 to your computer and use it in GitHub Desktop.
Using Objects as maps
var emptyMap = {};
var key = 'toString';
emptyMap[key] == undefined; // outputs false when it should be true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment