Closed orangebokov closed 8 months ago
thanks for this change. I will notify once it is released.
thanks for the library
I think this was broken by #727 somehow
should be fixed with 9.2.0
@selfrefactor rambdax release too?
Sorry for delay, 11.1.0 for Rambdax was just released
This is a type definition from
node_modules/rambda/index.d.ts
This is implementation from
node_modules/rambda/src/unless.js
The problem that this incorrectly works with 3 parameters. Example:
This should return the string. But it returns the function:
input => predicate(input) ? input : whenFalse(input)
Which is not surprising based on the implementationThe
when
function works great An example of correct implementation based on thewhen
function: