Skip to content

Instantly share code, notes, and snippets.

@sstephenson
Created September 28, 2010 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sstephenson/600162 to your computer and use it in GitHub Desktop.
Save sstephenson/600162 to your computer and use it in GitHub Desktop.
// Safari
var f = function() {}, ks = [];
f.prototype = {};
for (var k in f) ks.push(k);
ks // => ["prototype"]
// Chrome
var f = function() {}, ks = [];
f.prototype = {};
for (var k in f) ks.push(k);
ks // => []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment