forked from crowetic/commerce
4 lines
84 B
TypeScript
4 lines
84 B
TypeScript
export default function getPathname(url: string) {
|
|
return new URL(url).pathname
|
|
}
|