Y
Hacker News
new
|
ask
|
show
|
jobs
by
no_wizard
2231 days ago
You can just use the URL object now
https://developer.mozilla.org/en-US/docs/Web/API/URL