feature(localHostOrDomainIs): add built-in localHostOrDomainIs function