I have an array of object like this:
[
{type: 'x', 'attributes': {status: 'emitted', num: 1}},
{type: 'y', attributes: {status: 'changed', num: 2}}
]
I want to change every status: emitted to 'done' and every status: 'changed' to 'error'
How can I do this with ramda?