mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-13 02:14:43 +00:00
Add isString util
This commit is contained in:
1 parent
59c9cd0329
commit
55f7283936
1 file changed
+6
-1
+6
-1
@@ -51,11 +51,16 @@ function checkInvalidDomain(str) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function isString(value) {
|
||||
return typeof value === 'string' || value instanceof String;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
checkInvalidDomain,
|
||||
checkIfValidFQDN,
|
||||
checkIfValidIP,
|
||||
stripExt,
|
||||
getFileExtension,
|
||||
getFiles
|
||||
getFiles,
|
||||
isString
|
||||
}
|
||||
Reference in new issue
Block a user