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