function isIPv6
Jump to headingisIPv6(input: string): boolean
Returns true
if input
is an IPv6 address. Otherwise, returns false
.
net.isIPv6('::1'); // returns true
net.isIPv6('fhqwhgads'); // returns false
Parameters Jump to heading
Jump to headinginput: string
Return Type Jump to heading
boolean