I am trying to remove some properties from an array of objects using ramda. I have an array of properties to remove like:
const colToHide = ['name', 'age'];
// those properties are selected by the user
And I want to remove the properties 'name' and 'age' (or any user selected property) from one array of objects. The array of objects is something like this:
const person = [
{name:'sam', age:'24', address:'xyz avenue', employed:true},
{name:'john', age:'25', address:'xyz avenue', employed:true}
];
What would be right way to update that array of object?