shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- value*-Mixed
The value to check
Return
- -Boolean
The check result
Example
import { isEmail } from '@blackbyte/sugar/is';
isEmail('john.doe@gmail.com') => true
isEmail('plop@yop.com') => true
isEmail('hello') => falseTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space