Created by Ely on 1/21/2015.
Methods
-
static stringLengthValidator(options, value) → {Object}
-
Parameters:
Name Type Description options
Object value
* Returns:
Object -
static stringLengthValidatorNoNormalize(options, value) → {Object}
-
Same as `stringLengthValidator` except doesn't normalize the incoming options. Useful for cases where you have to call `toStringLengthValidator` options from outside of the `stringLengthValidator` call ( helps eliminate one call in this case). Also useful for extreme cases (cases where you have hundreds of validators and want to pull out every ounce of performance from them possible).
Parameters:
Name Type Description options
Object value
* Returns:
Object -
static toStringLengthOptions(options) → {Object}
-
Normalizes (ensures has expected properties) `stringLengthValidator`'s options.
Parameters:
Name Type Description options
Object Returns:
Object