Skip to content

Add type checks to `inetPtoN()` and `inetNtoP()`

Tony Butler requested to merge tony/kado:4.x-typechk-inetXtoY into 4.x
  • inetPtoN()
    • Throw for not string input
    • Throw for no match as IPv4 or IPv6
    • optimize const/let usage and placement
  • inetNtoP()
    • Throw for not string input
    • Throw for not length 4 or 16

Merge request reports