@mll-lab/js-utils 2.30.0 → 2.31.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.js CHANGED
@@ -15731,12 +15731,14 @@ function pluralize(amount, singular, plural) {
15731
15731
  function isString(value) {
15732
15732
  return typeof value === 'string';
15733
15733
  }
15734
+ function isNonEmptyString(value) {
15735
+ return isString(value) && value !== '';
15736
+ }
15734
15737
  function isNotNullish(value) {
15735
15738
  return value != null;
15736
15739
  }
15737
15740
  function isArrayOfStrings(value) {
15738
- return (value instanceof Array &&
15739
- value.every((record) => typeof record === 'string'));
15741
+ return value instanceof Array && value.every(isString);
15740
15742
  }
15741
15743
  function isEmptyObject(value) {
15742
15744
  return Boolean(value &&
@@ -15895,6 +15897,7 @@ exports.isLabID = isLabID;
15895
15897
  exports.isLabId = isLabId;
15896
15898
  exports.isMobileDevice = isMobileDevice;
15897
15899
  exports.isNonEmptyArray = isNonEmptyArray;
15900
+ exports.isNonEmptyString = isNonEmptyString;
15898
15901
  exports.isNotNullish = isNotNullish;
15899
15902
  exports.isOnlyDigits = isOnlyDigits;
15900
15903
  exports.isPartialGermanNumber = isPartialGermanNumber;