The options for the validated function.
The function to be executed after validation.
An object containing validation methods.
A function that sanitizes the arguments.
A function that validates the sanitized arguments.
A function that takes args as its parameter, sanitizes, validates, and runs run.
Creates a function that sanitizes and validates its arguments before running a custom function.
Source
Example