Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

array.ts

8 lines196 Bytes

1/**
2 * @since 2.0.0
3 */
4​
5import type { NonEmptyArray } from "../Array.ts"
6​
7/** @internal */
8export const isArrayNonEmpty = <A>(self: ReadonlyArray<A>): self is NonEmptyArray<A> => self.length > 0