UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
lib
/
utils
/
canUseDom.js
11 lines
(8 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
canUseDom
(
) {
return
!!(
typeof
window
!==
'undefined'
&&
window
.
document
&&
window
.
document
.
createElement
); }
exports
[
"default"
] = canUseDom;