Skip to content

Commit a535e42

Browse files
committed
feat: add path join
1 parent 8394acf commit a535e42

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/path-join.browser.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict'
2+
3+
function join (...args) {
4+
if (args.length === 0) {
5+
return '.'
6+
}
7+
8+
return args.join('/')
9+
}
10+
11+
module.exports = join

src/path-join.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = require('path').join

0 commit comments

Comments
 (0)