@mll-lab/js-utils 2.5.0 → 2.6.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 +4 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/predicates.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -15167,6 +15167,9 @@ const isURL = (value) => {
|
|
|
15167
15167
|
const isWord = (value) => isString(value) && /^[\w-]+$/.test(value);
|
|
15168
15168
|
const isLabId = (value) => isString(value) && /^\d{2}-\d{6}$/.test(value);
|
|
15169
15169
|
const isRackBarcode = (value) => isString(value) && /^[A-Z]{2}\d{8}$/.test(value);
|
|
15170
|
+
function isNotNullish(value) {
|
|
15171
|
+
return value != null;
|
|
15172
|
+
}
|
|
15170
15173
|
|
|
15171
15174
|
/**
|
|
15172
15175
|
* Round a number to a given number of decimal places.
|
|
@@ -15215,6 +15218,7 @@ exports.isEmail = isEmail;
|
|
|
15215
15218
|
exports.isFuture = isFuture;
|
|
15216
15219
|
exports.isLabId = isLabId;
|
|
15217
15220
|
exports.isNonEmptyArray = isNonEmptyArray;
|
|
15221
|
+
exports.isNotNullish = isNotNullish;
|
|
15218
15222
|
exports.isOnlyDigits = isOnlyDigits;
|
|
15219
15223
|
exports.isRackBarcode = isRackBarcode;
|
|
15220
15224
|
exports.isString = isString;
|