kinetex - v1.0.0-rc.1
    Preparing search index...

    Function isLocalhost

    • Check whether a URL points to localhost.

      Parameters

      • url: string

        The URL to check.

      Returns boolean

      True if hostname is localhost, 127.0.0.1, ::1, or *.localhost.