%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/@popperjs/core/lib/dom-utils/
Upload File :
Create Path :
Current File : /var/www/html/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js.flow

// @flow
import { isElement } from './instanceOf';
import type { Window } from '../types';

export default function getDocumentElement(
  element: Element | Window
): HTMLElement {
  // $FlowFixMe[incompatible-return]: assume body is always available
  return (
    (isElement(element)
      ? element.ownerDocument
      : // $FlowFixMe[prop-missing]
        element.document) || window.document
  ).documentElement;
}

Zerion Mini Shell 1.0