waytale - v0.3.0
    Preparing search index...

    Function isLocalhost

    • Check whether a given hostname refers to localhost. Checks for domain name, general IPv4 and IPv6 addresses. Assumes valid addresses.

      Parameters

      • hostname: string

        domain name or address to check

      Returns boolean

      • true if hostname resolves to localhost