isEmail

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is

Check if the passed value is a valid email address

Params

  1. value*-Mixed

    The value to check

Return

  1. -Boolean

    The check result

Example

import { isEmail } from '@blackbyte/sugar/is';
isEmail('john.doe@gmail.com') => true
isEmail('plop@yop.com') => true
isEmail('hello') => false

Todo

  • testsnormal