We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function numberValidation(numberToValidate, options) { options = options || options;
should be
function numberValidation(numberToValidate, options) { options = options || {};
The text was updated successfully, but these errors were encountered:
function emailValidation(emailToValidate, options) { options = options || options; return regex.email.test(emailToValidate); }
function emailValidation(emailToValidate, options) { options = options || {}; return regex.email.test(emailToValidate); }
Sorry, something went wrong.
A more elegant syntax, (used in Backbone sources), would be :
options || (options = {});
This way, the allocation is executed only if options is null.
24ee3d7
No branches or pull requests
function numberValidation(numberToValidate, options) {
options = options || options;
should be
function numberValidation(numberToValidate, options) {
options = options || {};
The text was updated successfully, but these errors were encountered: