{"size": 331, "ext": "js", "max_stars_repo_path": "src/utils/getOppositePosition.js", "max_stars_repo_name": "d-darwin/darwin-vue-ui", "max_stars_repo_stars_event_min_datetime": "2020-11-13T07:21:36.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-16T17:16:17.000Z", "max_issues_repo_path": "src/utils/getOppositePosition.js", "max_issues_repo_name": "d-darwin/darwin-vue-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/getOppositePosition.js", "max_forks_repo_name": "d-darwin/darwin-vue-ui", "max_forks_repo_forks_event_min_datetime": "2021-03-19T13:52:31.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-15T21:56:57.000Z"}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 15.7619047619, "max_line_length": 35, "alphanum_fraction": 0.5468277946}
/**
 * Returns opposite position.
 *
 * @param position
 * @returns {string}
 */
export default function(position) {
  switch (position) {
    case "top":
      return "bottom";
    case "right":
      return "left";
    case "bottom":
      return "top";
    case "left":
      return "right";
    default:
      return "";
  }
}
