We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Home / predicate
Renames and re-exports predicate
function predicate<T>( parser, f, reason): (reader) => Fail | Ok<T>
Validates result with provided predicate.
T
parser
t
undefined
f
value
boolean
reason
string
'condition not met'
Function
reader
Reader
Fail | Ok<T>
Fail
Ok
predicate.ts:6