Returns x when the predicate is true, or the result of fn(x) when the predicate is false.
x
fn(x)
unless(isOdd)(add(2))(3)// => 3unless(isOdd)(add(2))(4)// => 6 Copy
unless(isOdd)(add(2))(3)// => 3unless(isOdd)(add(2))(4)// => 6
Generated using TypeDoc
Returns
x
when the predicate is true, or the result offn(x)
when the predicate is false.