{"size": 255, "ext": "js", "max_stars_repo_path": "addon/utils/element-is-visible.js", "max_stars_repo_name": "Duder-onomy/ember-focus-trap", "max_stars_repo_stars_event_min_datetime": "2020-05-06T05:13:32.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-23T05:06:11.000Z", "max_issues_repo_path": "addon/utils/element-is-visible.js", "max_issues_repo_name": "Duder-onomy/ember-trap-focus", "max_issues_repo_issues_event_min_datetime": "2020-05-07T23:24:36.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-30T22:53:41.000Z", "max_forks_repo_path": "addon/utils/element-is-visible.js", "max_forks_repo_name": "Duder-onomy/ember-focus-trap", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 111, "max_forks_count": null, "avg_line_length": 42.5, "max_line_length": 123, "alphanum_fraction": 0.7725490196}
export default function elementIsVisible(element) {
  let computedStyle = document.defaultView.getComputedStyle(element, null);

  return computedStyle.getPropertyValue('display') !== 'none' && computedStyle.getPropertyValue('visibility') !== 'hidden';
}
