Binding.any()
Creates a new binding that combines multiple bindings using OR semantics.
static any<A extends Array<undefined | null | string | Binding<any>>>(
...sources: A
): Binding<A[number] extends Binding<infer T> ? T : any>;
Summary
Returns the first truthy value, or the last falsy value if none are truthy. Returns undefined if no valid sources remain after filtering.
Parameters
- sources — One or more instances of Binding or source paths; undefined/null values are filtered out
Return value
A new Binding object
Related
class Binding
A class that represents a property binding.
