You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the IP address is invalid, some methods throw errors while others return something. There are also a couple methods (e.g. href()) which don't return falsy values. Should this be more consistent? I like how like all boolean methods (e.g. isValid()) return false when the IP address is invalid, but it seems like the others should all throw errors or return null.
The following code calls each method on Address6 when the IP address is invalid.
When the IP address is invalid, some methods throw errors while others return something. There are also a couple methods (e.g.
href()
) which don't return falsy values. Should this be more consistent? I like how like all boolean methods (e.g.isValid()
) returnfalse
when the IP address is invalid, but it seems like the others should all throw errors or returnnull
.The following code calls each method on
Address6
when the IP address is invalid.This is the output:
The text was updated successfully, but these errors were encountered: