4 lines
88 B
TypeScript
4 lines
88 B
TypeScript
|
export function pathBasename(path: string) {
|
||
|
return path.split("/").reverse()[0];
|
||
|
}
|