Function isIPv4

  • IPv4アドレスの形式が正しいかどうかを判定

    IPv4 address format is correct or not

    Example

    isIPv4("255.255.255.255"); // true
    isIPv4("255.255.255.256"); // false

    Parameters

    • ip: string

      IPv4アドレス。 IPv4 address.

    Returns boolean

    正しい形式の場合は true, そうでない場合は false。 True if the format is correct, false otherwise.

Generated using TypeDoc