Add isString util

This commit is contained in:
Tweak authored and GitHub committed 2023-01-19 18:35:15 -07:00
1 parent 59c9cd0329
commit 55f7283936
1 file changed
+6 -1
+6 -1
View File
@@ -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
}