Blame view

天文台pc/tianwentai-ui/node_modules/dom-helpers/esm/isWindow.js 216 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
  import isDocument from './isDocument';
  export default function isWindow(node) {
    if ('window' in node && node.window === node) return node;
    if (isDocument(node)) return node.defaultView || false;
    return false;
  }