@aicore/libcommonutils
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "@aicore/libcommonutils", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Common util libraries used by various modules. This library is created to prevent code duplication", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -39,4 +39,4 @@ /* | ||
export {isNumber, isString, isObject, isBoolean, isObjectEmpty} from './utils/common.js'; | ||
export {isNumber, isString, isObject, isBoolean, isObjectEmpty, isStringEmpty} from './utils/common.js'; | ||
export {getMySqlConfigs} from './utils/configs.js'; | ||
export {HTTP_STATUS_CODES} from './const/http.js'; |
@@ -14,2 +14,11 @@ // @INCLUDE_IN_API_DOCS | ||
/** | ||
* Returns true if the given value is a string and is empty. | ||
* @param str - The string to check. | ||
* @returns true | ||
*/ | ||
export function isStringEmpty(str) { | ||
return isString(str) && str.trim() === ''; | ||
} | ||
/** This is a description of the isNumber function. | ||
@@ -16,0 +25,0 @@ * This function checks if object is Number or not |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52975
225