{"size": 344, "ext": "js", "max_stars_repo_path": "src/util/deepclone.js", "max_stars_repo_name": "ys173711/vueSSR", "max_stars_repo_stars_event_min_datetime": "2019-10-09T15:12:25.000Z", "max_stars_repo_stars_event_max_datetime": "2019-10-09T15:12:44.000Z", "max_issues_repo_path": "src/util/deepclone.js", "max_issues_repo_name": "ys173711/vueSSR", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/util/deepclone.js", "max_forks_repo_name": "ys173711/vueSSR", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.2352941176, "max_line_length": 45, "alphanum_fraction": 0.5406976744}
/**
 * @des deep clone
 * @param
 */
export const deepclone = (param) => {
  if (typeof param !== 'object') return param
  const temp = Array.isArray(param) ? [] : {}
  Object.keys(param).forEach(i => {
    if (typeof param[i] === 'object') {
      temp[i] = deepclone(param[i])
    } else {
      temp[i] = param[i]
    }
  })
  return temp
}
