ended8월 1일· 1 sources

You've been wrapping `new URL()` in try/catch. `URL.parse()` does it natively.

Why it matters

Every codebase has this utility function somewhere. You wrote it the first time an untrusted URL caused an uncaught exception, or when a form field needed validation before submission, or when an API ...

1
Sources
+0
24h
Growth
4d
Active

Sources

Related Issues