Documentation

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

Return value

A new Binding object

Related