UNPKG
@rc-component/util
Version:
latest (1.3.0)
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
Common Utils For React Component
github.com/react-component/util
react-component/util
@rc-component/util
/
lib
/
Dom
/
canUseDom.js
9 lines
(8 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
= canUseDom;
function
canUseDom
(
) {
return
!!(
typeof
window
!==
'undefined'
&&
window
.
document
&&
window
.
document
.
createElement
); }