Skip to content

Instantly share code, notes, and snippets.

@bga
Created October 6, 2010 18:17
Show Gist options
  • Save bga/613829 to your computer and use it in GitHub Desktop.
Save bga/613829 to your computer and use it in GitHub Desktop.
// via me and @kangax
(function()
{
var a = {};
var someId = new Date();
var proto = {};
proto[someId] = someId;
return (a.__proto__ = proto, a[someId] === someId) &&
(a.__proto__ = null, !(a instanceof Object));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment