I'm feeling my way though functional programming with Ramda and I'm struggling on something sounds like it should be easy.
I want all the entries in an array where a property does not equal a value.
For example in pure js
const filtered = source.filter(entry => entry.name !== 'something');
In Ramda there is a propEq so I can easily get all the elements that do match a value such as
const filtered = R.filter(R.propEq('name','something'),source);
But I can't see how to do the inverse of that, to only return values that do not equal a value.
I'm sure this must be very easy but I'm struggling to see a built in function to do it, the closest I can come up with is:
const others = R.filter(rate => rate.name !== name,res.rates);
But I'm sure there must be a better way?