if
Learn about the available options, methods and use cases.
This utility allows you to mark a value as successfully validated if it meets a specific condition. You can use this utility validator if you want to get the input validated based on external specifications or conditions.
Usage
Following is the simple usage of this validator
Options
Following are the available options for this validator
Examples
Read the examples below to understand different use cases
Case 1 (Basic usage)
Last updated
Was this helpful?