Checks for a valid domain name.
https://github.com/johnotander/domain-regex
isDomain('example.com'); // true isDomain('subdomain.example.com'); // true isDomain('sub.domain.example.website'); // true isDomain('not_a_domain'); // false isDomain(1234); // false isDomain(true); // false
The value to check.
Whether the value is a valid domain name.
Generated using TypeDoc
Checks for a valid domain name.
https://github.com/johnotander/domain-regex
isDomain('example.com'); // true isDomain('subdomain.example.com'); // true isDomain('sub.domain.example.website'); // true isDomain('not_a_domain'); // false isDomain(1234); // false isDomain(true); // false