UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

9 lines (6 loc) 204 B
/** * @since 2.0.0 */ import type { NonEmptyArray } from "../ReadonlyArray.js" /** @internal */ export const isNonEmptyArray = <A>(self: ReadonlyArray<A>): self is NonEmptyArray<A> => self.length > 0