"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const getCurrentDocument_1 = __importDefault(require("./getCurrentDocument")); const isWindow_1 = __importDefault(require("./isWindow")); function getCurrentWindow(obj) { if (isWindow_1.default(obj)) { return obj; } const doc = getCurrentDocument_1.default(obj); return doc && doc.defaultView; } exports.default = getCurrentWindow;