Skip to content

Instantly share code, notes, and snippets.

@chrislaughlin
Created February 1, 2014 11:45
Show Gist options
  • Save chrislaughlin/8751213 to your computer and use it in GitHub Desktop.
Save chrislaughlin/8751213 to your computer and use it in GitHub Desktop.
Using Object Create
var map = Object.create(null);
var key = 'toString';
map[key] == undefined; //outputs true as expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment