how to remove property of object in javascript without delete

JavaScript
const names = {
  father: "Johnny",
  brother: "Billy",
  sister: "Sandy"
}

const newNames = Object.keys(names).reduce((object, key) => {
  if (key !== "father") {
    object[key] = names[key]
  }
  return object
}, {})

// { brother: "Billy", sister: "Sandy" }const names = {
  father: "Johnny",
  brother: "Billy",
  sister: "Sandy"
}

delete names.father
// { brother: "Billy", sister: "Sandy" }

delete names["father"]
// { brother: "Billy", sister: "Sandy" }
Source

Also in JavaScript: