When using .val().matches()
to validate ( ".validate"
) the data that will be written to the database of firebase it is necessary to use other validations like .val().length
and / or .isString()
/ .isNumber()
?
I do not see the utility of using the 3 together since in the regular expression I can validate type and size, or use .val().length
and / or .isString()
/ .isNumber()
or .val().matches()
Is there any performance gain that makes its uses worthwhile together?
In a validation of type and size, which is more performative, .val().matches()
or .val().length
and .isString()
/ .isNumber()
?