mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
6 lines
125 B
TypeScript
6 lines
125 B
TypeScript
export default function getFileName(path: string) {
|
|
const chunks = path.split('/');
|
|
|
|
return chunks[chunks.length - 1];
|
|
}
|