Function isIPv4

  • Check whether a string is an IPv4 or not

    Parameters

    • s: string

      A string

    Returns boolean

    true if a string is an IPv4