Skip to main content

preferProp()

preferProp(def: boolean, prop?: boolean, context?: boolean, doNotFinalize?: boolean): boolean

Defined in: packages/core/src/utils/preferProp.ts:15

For given default, prop, and context values, return the first provided of prop, context, and default, in that order.

Parameters​

ParameterType
defboolean
prop?boolean
context?boolean
doNotFinalize?boolean

Returns​

boolean


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.