import {slicePath} from '@ywfe/utils'; export const joinPath = (paths: string[]) => { let result = ''; paths.map((path: string) => { if(path.indexOf('?') === path.length - 1){ result += slicePath(path) } else { result += path; } }); return result; }