'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

function defaultView(node) {
  return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node
      || (node.document && node) // node is a Window
      || node.defaultView; // node is a Document
}

exports.default = defaultView;
