UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

5 lines (3 loc) 173 B
type EmptyArray<T> = readonly [T, ...ReadonlyArray<T>]; declare function isEmptyArr<T>(array: ReadonlyArray<T> | undefined): array is EmptyArray<T>; export { isEmptyArr };