@monstermann/fn
Version:
A utility library for TypeScript.
20 lines • 373 B
TypeScript
//#region src/array/isEmpty.d.ts
/**
* `isEmpty(array)`
*
* Returns `true` if `array` has no elements, otherwise returns `false`.
*
* ```ts
* isEmpty([]); // true
* ```
*
* ```ts
* pipe([], isEmpty()); // true
* ```
*/
declare const isEmpty: {
(): <T>(target: readonly T[]) => boolean;
<T>(target: readonly T[]): boolean;
};
//#endregion
export { isEmpty };