Completed
Push — master ( 6da7a0...d916e5 )
by Vitaly
31s
created

join.js ➔ join   A

Complexity

Conditions 2
Paths 4

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
nc 4
nop 1
dl 0
loc 5
rs 9.4285

1 Function

Rating   Name   Duplication   Size   Complexity  
A join.js ➔ ... ➔ ??? 0 1 1
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
}