const obj = {name: "John", age: 30, gender: "male"};
const filteredObj = Object.fromEntries(
  Object.entries(obj).filter(([key, value]) => key !== "age")
);
console.log(filteredObj);  // { name: 'John', gender: 'male' }
// 过滤分数字段
const filteredObj = Object.fromEntries(Object.entries(ruleForm.value).filter(([key]) => key.search(/score/) >= 0));
// 累计分数
const sumScore = Object.keys(filteredObj).reduce((prev, key) => prev + ruleForm.value[key], 0);

扩展阅读