Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_class_validator/src/index.ts>isEmail

Decorator-based property validation for classes.
Latest
function isEmail
import { isEmail } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Checks if the string is an email. If given value is not a string, then it returns false.

Parameters

value: unknown
optional
options: ValidatorJS.IsEmailOptions

Returns

boolean