Is there an idiomatic way to write the conditional operator when you want nothing to happen in one case?
For example, in the following I want to yield a value only if foo is truthy.
Syntactically I must include the second half of the conditional operator (the :), so is it idiomatic to put undefined here?
foo ? yield 'something' : undefined;