inferred-types 0.55.0 → 0.55.1

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.
@@ -381,6 +381,7 @@ __export(src_exports, {
381
381
  isDutchNewsUrl: () => isDutchNewsUrl,
382
382
  isEbayUrl: () => isEbayUrl,
383
383
  isEmail: () => isEmail,
384
+ isEmpty: () => isEmpty,
384
385
  isEnergyMetric: () => isEnergyMetric,
385
386
  isEnergyUom: () => isEnergyUom,
386
387
  isEqual: () => isEqual,
@@ -6344,6 +6345,9 @@ function isEmail(val) {
6344
6345
  const firstChar = val[0].toLowerCase();
6345
6346
  return isString(val) && (LOWER_ALPHA_CHARS2.includes(firstChar) && parts.length === 2 && domain.length >= 1 && tld.length >= 2);
6346
6347
  }
6348
+ function isEmpty(val) {
6349
+ return isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && val.length === 0;
6350
+ }
6347
6351
  function isErrorCondition(value, kind = null) {
6348
6352
  return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value.kind === kind : true : false;
6349
6353
  }
@@ -8473,6 +8477,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
8473
8477
  isDutchNewsUrl,
8474
8478
  isEbayUrl,
8475
8479
  isEmail,
8480
+ isEmpty,
8476
8481
  isEnergyMetric,
8477
8482
  isEnergyUom,
8478
8483
  isEqual,