提交 05ea65d3 编写于 作者: J Johannes Rieken

Revert "what"

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