我正在嘗試使用ramda. 我有一系列要?jiǎng)h除的屬性,例如:const colToHide = ['name', 'age']; // those properties are selected by the user 我想從一組對(duì)象中刪除屬性'name'和'age'(或任何用戶(hù)選擇的屬性)。對(duì)象數(shù)組是這樣的:const person = [ {name:'sam', age:'24', address:'xyz avenue', employed:true}, {name:'john', age:'25', address:'xyz avenue', employed:true}];更新該對(duì)象數(shù)組的正確方法是什么?
使用 ramda 修改對(duì)象數(shù)組中的屬性
猛跑小豬
2021-06-30 04:40:13