4
0
forked from crowetic/commerce
commerce/lib/get-pathname.ts
2020-10-21 21:41:06 -05:00

4 lines
84 B
TypeScript

export default function getPathname(url: string) {
return new URL(url).pathname
}