I need to remove the star key from the object and output should be look like output variable. Can someone tell how to implement the removeStar function?
let input = {
  "p": {
    "pk1": "pv1",
    "pk2": "pv2",
    "c": {
      "*": {
        "ck1": "cv1",
        "ck2": "cv2"
      }
    }
  }
}
function removeStar(input) {
  // Suggest implementation of this function.
}
let expectedOutput = {
  "p": {
    "pk1": "pv1",
    "pk2": "pv2",
    "c": {
      "ck1": "cv1",
      "ck2": "cv2"
    }
  }
};
console.log(removeStar(input)); 
     
    