I've seen many answers with many votes advocating using the ternary operator. The ternary is great if a) you do have an alternative option and b) you are returning a fairly simple value from a simple condition. But...
The original question didn't have an alternative, and the ternary operator with only a single (real) branch forces you to return a confected answer.
lemons ? "foo gave me a bar" : "who knows what you'll get back"
I think the most common variation is lemons ? 'foo...' : ''
, and, as you'll know from reading the myriad of articles for any language on true, false, truthy, falsey, null, nil, blank, empty (with our without ?) , you are entering a minefield (albeit a well documented minefield.)
As soon as any part of the ternary gets complicated you are better off with a more explicit form of conditional.
A long way to say that I am voting for if (lemons) "foo"
.