// @flow import type { contactType as Contact } from '../flowTypes'; const hasRestrictedExternalContacts = (contacts: Array, restrictedExternalEmails: Array): boolean => { if (!restrictedExternalEmails.length) { return false; } return contacts.some(({ value }) => restrictedExternalEmails.includes(value)); }; export default hasRestrictedExternalContacts;