Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

240 B
Raw Blame
import type { NonEmptyReadonlyArray } from "effect/Array"

/** @internal */
export const isNonEmpty = <A>(a: A | ReadonlyArray<A> | undefined): a is A | NonEmptyReadonlyArray<A> =>
  a !== undefined && !(Array.isArray(a) && a.length === 0)