isValid
This function assesses if the provided verificable
matches or not the provided predicate
.
Returns true
if predicate
is matched, false
otherwise.
Examples:
First, let's define an example value
that we want to verify and wrap it with asVerificable():
Then we can use isValid()
function to verify if provided value
represented by verificable
object matches our chosen predicates: isString
, isNumber
, isInteger
, isNumberInRange()
:
Last updated
Was this helpful?