diff --git a/src/vendor/core/ExecutionEnvironment.js b/src/vendor/core/ExecutionEnvironment.js index 2f7907dac1..0a376fba5c 100644 --- a/src/vendor/core/ExecutionEnvironment.js +++ b/src/vendor/core/ExecutionEnvironment.js @@ -20,10 +20,11 @@ "use strict"; -var canUseDOM = +var canUseDOM = !!( typeof window !== 'undefined' && window.document && - typeof window.document.createElement === 'function'; + window.document.createElement +); /** * Simple, lightweight module assisting with the detection and context of