Update object checks.

This commit is contained in:
John-David Dalton
2017-04-23 22:15:51 -07:00
parent a6019d5316
commit f03b3edca4
11 changed files with 14 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
/** Detect free variable `global` from Node.js. */
const freeGlobal = typeof global == 'object' && global && global.Object === Object && global
const freeGlobal = typeof global == 'object' && global !== null && global.Object === Object && global
export default freeGlobal