Skip to content

Instantly share code, notes, and snippets.

@intojs
Created February 21, 2021 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intojs/e07b76f3cfd4da6b5f80252b5721336c to your computer and use it in GitHub Desktop.
Save intojs/e07b76f3cfd4da6b5f80252b5721336c to your computer and use it in GitHub Desktop.
const isNewsletterFormModelValid = (model) => {
const {
fields: { fullName, newsletter },
} = model;
return !!(fullName.value && fullName.value.length > 2 && newsletter.value);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment