{"size": 230, "ext": "js", "max_stars_repo_path": "node_modules/dom-helpers/esm/isWindow.js", "max_stars_repo_name": "Anh-Jo/react-swipeable-views", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/dom-helpers/esm/isWindow.js", "max_issues_repo_name": "Anh-Jo/react-swipeable-views", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/dom-helpers/esm/isWindow.js", "max_forks_repo_name": "Anh-Jo/react-swipeable-views", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 38.3333333333, "max_line_length": 60, "alphanum_fraction": 0.7260869565}
import isDocument from 'dom-helpers/cjs/isDocument';
export default function isWindow(node) {
  if ('window' in node && node.window === node) return node;
  if (isDocument(node)) return node.defaultView || false;
  return false;
}