@mll-lab/js-utils 2.15.1 → 2.15.3
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 +4 -3
- package/dist/index.common.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/predicates.d.ts +0 -2
- package/dist/predicates.test.d.ts +3 -1
- package/dist/typeGuards.d.ts +2 -0
- package/dist/typeGuards.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -15319,6 +15319,10 @@ function pluralize(amount, singular, plural) {
|
|
|
15319
15319
|
function isString(value) {
|
|
15320
15320
|
return typeof value === 'string';
|
|
15321
15321
|
}
|
|
15322
|
+
function isNotNullish(value) {
|
|
15323
|
+
return value != null;
|
|
15324
|
+
}
|
|
15325
|
+
|
|
15322
15326
|
const isAlphanumeric = function isAlphanumeric(value) {
|
|
15323
15327
|
return isString(value) && /^[A-Za-z0-9]+$/.test(value);
|
|
15324
15328
|
};
|
|
@@ -15363,9 +15367,6 @@ const isLabId = function isLabId(value) {
|
|
|
15363
15367
|
const isRackBarcode = function isRackBarcode(value) {
|
|
15364
15368
|
return isString(value) && /^[A-Z]{2}\d{8}$/.test(value);
|
|
15365
15369
|
};
|
|
15366
|
-
const isNotNullish = function isNotNullish(value) {
|
|
15367
|
-
return value != null;
|
|
15368
|
-
};
|
|
15369
15370
|
|
|
15370
15371
|
/**
|
|
15371
15372
|
* Call an array of promises in order, waiting for each promise to resolve before calling the next.
|