{"size": 343, "ext": "js", "max_stars_repo_path": "app/js/utils.js", "max_stars_repo_name": "VisualPerspective/globe-viewer", "max_stars_repo_stars_event_min_datetime": "2018-07-18T08:38:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-10T08:18:59.000Z", "max_issues_repo_path": "app/js/utils.js", "max_issues_repo_name": "VisualPerspective/globe-viewer", "max_issues_repo_issues_event_min_datetime": "2021-03-09T01:52:38.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T23:17:44.000Z", "max_forks_repo_path": "app/js/utils.js", "max_forks_repo_name": "VisualPerspective/globe-viewer", "max_forks_repo_forks_event_min_datetime": "2018-07-09T20:04:36.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-19T08:06:30.000Z"}
{"max_stars_count": 41, "max_issues_count": 5, "max_forks_count": 7, "avg_line_length": 24.5, "max_line_length": 55, "alphanum_fraction": 0.7405247813}
import platform from 'platform'
import _  from 'lodash'

export function toRadians(degrees) {
  return degrees / 180 * Math.PI
}

// Needed for IE11 compatibility
export function dispatchEvent(name, detail) {
  let evt = document.createEvent('CustomEvent')
  evt.initCustomEvent(name, false, false, detail || {})
  window.dispatchEvent(evt)
}
