I have an array of the object like below :
[{name:'name', key:'21',good: 'true'},
{name: 'another name', key:'22',good:'false'},
...]
now I want to make a change in one of the objects in this array. My first try was this:
const s = R.compose(
R.assoc('good', checked),
R.propEq('key', name),
R.map(),
);
but this code results in that object which I want and only its 'good'
property. I want to get the whole array with that change.