UNPKG

@fluent-windows/hooks

Version:
21 lines (18 loc) 388 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; /** * Get the current `global this` * * Demo * import { useGlobal } from '@fluent-windows/hooks' * * const global = useGlobal() */ function useGlobal() { return typeof window !== 'undefined' ? window : global; } var _default = useGlobal; exports["default"] = _default;