src/uri/join.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 7
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 7
rs 10
wmc 3
mnd 1
bc 1
fnc 2
bpm 0.5
cpm 1.5
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A join.js ➔ join 0 5 2
1
import { join as pathJoin } from 'path';
2
3
export default function join(...args) {
4
5
    args = args.filter( arg => arg === 0 || Boolean(arg) ).map(String);
6
    return args.length ? `${pathJoin(...args)}` : '/';
7
}