@stdlib/assert
Version:
Standard assertion utilities.
24 lines (18 loc) • 387 B
Plain Text
{{alias}}( value )
Tests if a value is a domain name.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether value is a domain name.
Examples
--------
> var bool = {{alias}}( 'example.com' )
true
> bool = {{alias}}( 'foo@bar.com' )
false
See Also
--------