File tree 2 files changed +7
-8
lines changed 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,15 @@ var Global = getGlobal();
45
45
*/
46
46
function isBrowser ( ) {
47
47
return (
48
- // Check that we are not running in a Node.js runtime:
49
- IS_NODE === false &&
48
+ // Check that we are not running in a Node.js runtime:
49
+ ( IS_NODE === false &&
50
50
51
51
// Check for presence of `window` variable:
52
52
typeof window === 'object' &&
53
53
54
54
// Check that the `window` variable matches the determined global variable:
55
- window === Global &&
56
-
57
- // Check that the `window` variable is equal to the global scope:
58
- globalScope === true
55
+ window === Global && // Check that the `window` variable is equal to the global scope:
56
+ globalScope === true )
59
57
) ;
60
58
}
61
59
Original file line number Diff line number Diff line change 37
37
},
38
38
"dependencies" : {
39
39
"@stdlib/assert-is-node" : " ^0.2.2" ,
40
- "@stdlib/utils-global" : " ^0.2.2"
40
+ "@stdlib/utils-global" : " ^0.2.2" ,
41
+ "@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
41
42
},
42
43
"devDependencies" : {
43
44
"proxyquire" : " ^2.0.0" ,
79
80
"type" : " opencollective" ,
80
81
"url" : " https://opencollective.com/stdlib"
81
82
}
82
- }
83
+ }
You can’t perform that action at this time.
0 commit comments