Skip to content

Function: value() ​

value<T>(val): T

Defined in: src/runtime.ts:56

Return the first argument if it's truthy, otherwise return the second

Type Parameters ​

T ​

T

Parameters ​

val ​

T | (() => T)

The value or a function that returns the value

Returns ​

T

The resolved value

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.