vue-hooks-plus
Version:
Vue hooks library
9 lines (8 loc) • 410 B
JavaScript
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
function canUseDom() {
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
}
const isBrowser = !!(typeof window !== "undefined" && window.document && window.document.createElement);
exports.canUseDom = canUseDom;
exports.default = isBrowser;
;