FunctionsgetSubdomaingetSubdomain CallablegetSubdomain(name: string, apexName: string): null | stringGets the subdomain from a domain name.@examplegetSubdomain('sub.example.com', 'example.com'); // 'sub'getSubdomain('example.com', 'example.com'); // nullgetSubdomain('www.example.com', 'example.com'); // 'www'
Gets the subdomain from a domain name.