I want a function that returns a value when a function returns a value which is not null.
const getSomeValue = R.filter(...);
const getSomeOtherValue = R.propEq('name');
The R.until
function is probably the one to use.
Some pseudo code:
R.until(R.isNotNull, R...[getSomeValue, getSomeOtherValue]);
So run through the functions until the returned value is not null.
I don't find any suitable function in the Ramda docs to do this.
Any ideas?