The best way to control Claude Code, Codex and more from any computer or phone

main
ts 5 lines 240 Bytes
Raw
1 import type { NonEmptyReadonlyArray } from "effect/Array"
2
3 /** @internal */
4 export const isNonEmpty = <A>(a: A | ReadonlyArray<A> | undefined): a is A | NonEmptyReadonlyArray<A> =>
5 a !== undefined && !(Array.isArray(a) && a.length === 0)