Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 08ae6be

Browse files
committedJun 18, 2020
replce util import with own functions
1 parent 0507456 commit 08ae6be

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎utils/path-join.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
'use strict';
44

5-
var util = require('util');
5+
var util = {
6+
isString: function(arg) {
7+
return typeof arg === 'string';
8+
},
9+
isObject: function(arg) {
10+
return typeof arg === 'object' && arg !== null;
11+
}
12+
};
613

714
// resolves . and .. elements in a path array with directory names there
815
// must be no slashes or device names (c:\) in the array

0 commit comments

Comments
 (0)
Please sign in to comment.