Skip to content

Instantly share code, notes, and snippets.

@kruppel
Created April 16, 2015 21:07
Show Gist options
  • Save kruppel/7a27db6640ad780c0d19 to your computer and use it in GitHub Desktop.
Save kruppel/7a27db6640ad780c0d19 to your computer and use it in GitHub Desktop.
Globals?
(function() {
var isNative = function(obj) { return obj.toString().indexOf('[native code]') !== -1; };
var nonNative = Object.keys(window).filter(function(k) {
return !isNative(k);
}).sort();
console.log(nonNative);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment