Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 7 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
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 | } |