Function isDomain

  • Check whether a string is a domain or not

    Parameters

    • s: string

      A string

    • options: Partial<{
          strict: boolean;
      }> = ...

    Returns boolean

    return true if a string is a domain