Skip to content

Commit 828b17e

Browse files
committed
Fixes #358: add better JSdocs. Fixes issue with match method & enhances path method
1 parent cce1558 commit 828b17e

File tree

3 files changed

+184
-50
lines changed

3 files changed

+184
-50
lines changed

lib/helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ function isObject(o) {
1616
function isString(s) {
1717
return typeof s === 'string'
1818
}
19+
function isUndefined(u) {
20+
return typeof u === 'undefined'
21+
}
1922

2023
/**
2124
* Recursively remove a directory
@@ -52,6 +55,7 @@ const helpers = {
5255
isNumber,
5356
isString,
5457
isObject,
58+
isUndefined,
5559
rm
5660
}
5761

0 commit comments

Comments
 (0)