mobilizon/js/src/utils/validators.ts
2019-01-11 14:35:14 +01:00

8 lines
193 B
TypeScript

export function validateEmailField(value: string) {
return value.includes('@') || 'Invalid e-mail.';
}
export function validateRequiredField(value: any) {
return !!value || 'Required.';
}