mirror of
https://github.com/vercel/commerce.git
synced 2025-03-18 00:12:33 +00:00
4 lines
84 B
TypeScript
4 lines
84 B
TypeScript
|
export default function getPathname(url: string) {
|
||
|
return new URL(url).pathname
|
||
|
}
|