Binding.all()
Creates a new binding that combines multiple bindings using AND semantics.
static all<A extends Array<undefined | null | string | Binding<any>>>(
...sources: A
): Binding<A[number] extends Binding<infer T> ? T : any>;
Summary
Returns the last value if all values are truthy, otherwise returns the first falsy value. Returns true 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.
