(ip: string)
| 26 | * @returns `true` if the string is a valid IPv4 address, `false` otherwise |
| 27 | */ |
| 28 | export function isIPv4(ip: string): boolean { |
| 29 | return isIP(ip) === 4 |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Checks if a string is a valid IPv6 address. |
no outgoing calls
no test coverage detected