Evaluates candidate synchronous scalars or supplier functions in order, returning the first defined result (lazy coalesce). If a candidate is a function, it is invoked with zero arguments. Candidates after the first defined value are never evaluated (short-circuiting). If all candidates evaluate to undefined, returns undefined. Any exception thrown by an evaluated supplier function bubbles directly to the caller.
The first resolved defined value, or undefined if none resolved
Evaluates candidate synchronous scalars or supplier functions in order, returning the first defined result (lazy coalesce). If a candidate is a function, it is invoked with zero arguments. Candidates after the first defined value are never evaluated (short-circuiting). If all candidates evaluate to undefined, returns undefined. Any exception thrown by an evaluated supplier function bubbles directly to the caller.
The first resolved defined value, or undefined if none resolved
Evaluates candidates in order and returns the first defined result.
Param: values
Values or zero-argument functions that produce candidate results
Returns
The first result that is not
undefined, orundefinedif no candidate produces one