From 253edbd1c0ebbb048b072a999ea3146ef78f031f Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 24 May 2016 22:37:45 +0100 Subject: [PATCH] Remove arrow function --- src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 82ea75c..e5eb9e3 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,8 @@ global.window = require('jsdom').jsdom('').defaultView; -Object.keys(window).forEach(prop => !global[prop] && (global[prop] = window[prop])); +Object.keys(window).forEach(function(prop) { + if(!global[prop]) { + global[prop] = window[prop]; + } +}); module.exports = window;