diff options
Diffstat (limited to 'web_src/js/utils.js')
-rw-r--r-- | web_src/js/utils.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/web_src/js/utils.js b/web_src/js/utils.js index 4655b8eacc..1b701e1c6a 100644 --- a/web_src/js/utils.js +++ b/web_src/js/utils.js @@ -11,16 +11,6 @@ export function extname(path = '') { return ext || ''; } -// join a list of path segments with slashes, ensuring no double slashes -export function joinPaths(...parts) { - let str = ''; - for (const part of parts) { - if (!part) continue; - str = !str ? part : `${str.replace(/\/$/, '')}/${part.replace(/^\//, '')}`; - } - return str; -} - // test whether a variable is an object export function isObject(obj) { return Object.prototype.toString.call(obj) === '[object Object]'; |