From 477271dff425cd76bdf0ab5ad21c81d907d9d8bb Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 10 Oct 2016 21:11:04 +0100 Subject: [PATCH] Don't use truthy check to see if globals exist --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b9b4a76..b1083d6 100644 --- a/src/index.js +++ b/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) => {