Browse Source

Don't use truthy check to see if globals exist

pull/19/head
Luke Childs 9 years ago
parent
commit
477271dff4
  1. 2
      src/index.js

2
src/index.js

@ -13,7 +13,7 @@ const protectedproperties = (() => {
return Object
.getOwnPropertyNames(window)
.filter(prop => global[prop]);
.filter(prop => typeof global[prop] !== 'undefined');
})();
module.exports = (...args) => {

Loading…
Cancel
Save