提交 d6856719 编写于 作者: J Joao Moreno

what

上级 af39145e
......@@ -228,11 +228,10 @@ export function getRoot(path: string, sep: string = '/'): string {
return '';
}
export const join: (...parts: string[]) => string = function () {
export function join(...parts: string[]): string {
let value = '';
for (let i = 0; i < arguments.length; i++) {
let part = arguments[i];
for (let i = 0; i < parts.length; i++) {
let part = parts[i];
if (i > 0) {
// add the separater between two parts unless
// there already is one
......@@ -249,7 +248,7 @@ export const join: (...parts: string[]) => string = function () {
}
return normalize(value);
};
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册