Skip to content

API Function any

github-actions[bot] edited this page Dec 4, 2026 · 1 revision

Function: any()

function any<D>(...defs): AnyTerm<D>;

Defined in: src/engine/core/queryTerms.ts:24

A query term matching nodes with at least one of defs. In a row each one's view is under its key, or null when the node lacks it: if (r.ship) … narrows it. query.column(Ship) works for these too; columns.has(i) says whether row i has it.

Type Parameters

D

D extends readonly DataComponentDef<Schema, string>[]

Parameters

defs

...D

Returns

AnyTerm<D>

Clone this wiki locally