@mll-lab/js-utils 2.24.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +7 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/typeGuards.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -15364,6 +15364,12 @@ function isArrayOfStrings(value) {
|
|
|
15364
15364
|
return (value instanceof Array &&
|
|
15365
15365
|
value.every((record) => typeof record === 'string'));
|
|
15366
15366
|
}
|
|
15367
|
+
function isEmptyObject(value) {
|
|
15368
|
+
return Boolean(value &&
|
|
15369
|
+
typeof value === 'object' &&
|
|
15370
|
+
!(value instanceof Array) &&
|
|
15371
|
+
Object.keys(value).length === 0);
|
|
15372
|
+
}
|
|
15367
15373
|
|
|
15368
15374
|
const isAlphanumeric = function isAlphanumeric(value) {
|
|
15369
15375
|
return isString(value) && /^[A-Za-z0-9]+$/.test(value);
|
|
@@ -15507,6 +15513,7 @@ exports.isArrayOfStrings = isArrayOfStrings;
|
|
|
15507
15513
|
exports.isBSNR = isBSNR;
|
|
15508
15514
|
exports.isEmail = isEmail;
|
|
15509
15515
|
exports.isEmptyArray = isEmptyArray;
|
|
15516
|
+
exports.isEmptyObject = isEmptyObject;
|
|
15510
15517
|
exports.isFuture = isFuture;
|
|
15511
15518
|
exports.isLabID = isLabID;
|
|
15512
15519
|
exports.isLabId = isLabId;
|