quetre/utils/misc.js
2022-09-26 20:46:29 +05:30

3 lines
78 B
JavaScript

export const basename = (path) => {
return path.split('/').reverse()[0];
}