6 lines
106 B
JavaScript
6 lines
106 B
JavaScript
|
function pathJoin(a, b) {
|
||
|
return a == "/" ? "/" + b : (a || "") + "/" + b;
|
||
|
}
|
||
|
|
||
|
module.exports = pathJoin;
|