Function isURL

  • Check whether a string is a URL or not

    Parameters

    • s: string

      A string

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

    Returns boolean

    true if a string is a URL