when
when :: (Function, Function) → Function → Boolean
Takes two validators, the validator and the validator, then returns a new function receiving a value (of any type) and execute the validator only when the returns true.
It is largely used within the library itself to evaluate certain conditions:
contains.js
Related validators
composeornotLast updated