📜  js更改对象中每个值的值 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:27.755000             🧑  作者: Mango

代码示例1
//example function to loop through each key of an object and update each
Object.keys(objectName).forEach((key) => objectName[key] = "new value" });