@mll-lab/js-utils 2.19.0 → 2.20.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/array.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare type NonEmptyArray<T> = Array<T> & {
3
3
  0: T;
4
4
  };
5
5
  export declare function isNonEmptyArray<T>(value: Array<T>): value is NonEmptyArray<T>;
6
+ export declare function isEmptyArray(value: unknown): value is [];
6
7
  /**
7
8
  * Return a new array that does not contain the item at the specified index.
8
9
  */
@@ -9435,6 +9435,9 @@ root._=_;}}).call(commonjsGlobal);});
9435
9435
  function isNonEmptyArray(value) {
9436
9436
  return value.length > 0;
9437
9437
  }
9438
+ function isEmptyArray(value) {
9439
+ return value instanceof Array && value.length === 0;
9440
+ }
9438
9441
  /**
9439
9442
  * Return a new array that does not contain the item at the specified index.
9440
9443
  */
@@ -15484,6 +15487,7 @@ exports.insertIf = insertIf;
15484
15487
  exports.isAlphanumeric = isAlphanumeric;
15485
15488
  exports.isBSNR = isBSNR;
15486
15489
  exports.isEmail = isEmail;
15490
+ exports.isEmptyArray = isEmptyArray;
15487
15491
  exports.isFuture = isFuture;
15488
15492
  exports.isLabId = isLabId;
15489
15493
  exports.isMobileDevice = isMobileDevice;