{"size": 313, "ext": "js", "max_stars_repo_path": "public/js/replace-null.js", "max_stars_repo_name": "nhtuan0700/quan_ly_vat_tu_ute_v2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/replace-null.js", "max_issues_repo_name": "nhtuan0700/quan_ly_vat_tu_ute_v2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/replace-null.js", "max_forks_repo_name": "nhtuan0700/quan_ly_vat_tu_ute_v2", "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": 44.7142857143, "max_line_length": 85, "alphanum_fraction": 0.6645367412}
function replaceNull(someObj, replaceValue = "***") {
  const replacer = (key, value) => 
    String(value) === "null" || String(value) === "undefined" ? replaceValue : value;
  //^ because you seem to want to replace (strings) "null" or "undefined" too

  return JSON.parse( JSON.stringify(someObj, replacer));
}