diff --git a/index.ts b/index.ts index e8dd5ab1..8aed93b9 100644 --- a/index.ts +++ b/index.ts @@ -83,6 +83,10 @@ export function empty(array: ArrayLike): boolean { return array.length === 0; } +export function notEmpty(array: ArrayLike): boolean { + return array.length > 0; +} + export function reverse(array: ArrayLike): T[] { const result = copy({length: array.length}); for (let i = 0; i < array.length; ++i) {