A predicate function
An object to test with the pred
function and pass to onTrue
if necessary.
Either x
or the result of applying x
to onTrue
.
Tests the final argument by passing it to the given predicate function. If
the predicate is satisfied, the function will return the result of calling
the onTrue
function with the same argument. If the predicate is not
satisfied, the argument is returned as is.
A predicate function
Either x
or the result of applying x
to onTrue
.
Tests the final argument by passing it to the given predicate function. If
the predicate is satisfied, the function will return the result of calling
the onTrue
function with the same argument. If the predicate is not
satisfied, the argument is returned as is.
A predicate function
Either x
or the result of applying x
to onTrue
.
Generated using TypeDoc
Tests the final argument by passing it to the given predicate function. If the predicate is satisfied, the function will return the result of calling the
onTrue
function with the same argument. If the predicate is not satisfied, the argument is returned as is.