Optional
options: EventEmitterOptionsChecks if the specified object contains valid values based on the provided rules.
Object including parameters you want to check.
Object including rules for the parameters.
Optional
required: boolean = falseFlag whether the obj
is required or not.
Checks if the value is an array.
The value to check.
The rule object containing validation criteria.
Optional
name: string = 'value'The parameter name.
Checks if the value is a boolean.
The value to check.
The rule object containing validation criteria.
Optional
name: string = 'value'The parameter name.
Checks if the value is a float.
The value to check.
The rule object containing validation criteria.
Optional
name: string = 'value'The parameter name.
Checks if the value is an integer.
The value to check.
The rule object containing validation criteria.
Optional
name: string = 'value'The parameter name.
Checks if the value is an object.
The value to check.
The rule object containing validation criteria.
Optional
name: string = 'value'The parameter name.
Checks if the value is specified (not undefined).
The value to check.
Checks if the value is a string.
The value to check.
The rule object containing validation criteria.
Optional
name: string = 'value'The parameter name.
Gets the current error object.