Home / Function/ atLeastOne() — astro Function Reference

atLeastOne() — astro Function Reference

Architecture documentation for the atLeastOne() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a52f4de6_c345_4f8f_6e54_9f2bd21bef5c["atLeastOne()"]
  d999abf2_6bc2_106d_3dff_6755d287a943["index.ts"]
  a52f4de6_c345_4f8f_6e54_9f2bd21bef5c -->|defined in| d999abf2_6bc2_106d_3dff_6755d287a943
  a08d606c_937a_03a5_cabd_f08ee1478ccc["asDrizzleTable()"]
  a08d606c_937a_03a5_cabd_f08ee1478ccc -->|calls| a52f4de6_c345_4f8f_6e54_9f2bd21bef5c
  style a52f4de6_c345_4f8f_6e54_9f2bd21bef5c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/runtime/index.ts lines 78–80

function atLeastOne<T>(arr: T[]): arr is [T, ...T[]] {
	return arr.length > 0;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does atLeastOne() do?
atLeastOne() is a function in the astro codebase, defined in packages/db/src/runtime/index.ts.
Where is atLeastOne() defined?
atLeastOne() is defined in packages/db/src/runtime/index.ts at line 78.
What calls atLeastOne()?
atLeastOne() is called by 1 function(s): asDrizzleTable.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free